Hi πŸ™‚

I have a code for users to copy and paste into their site. that creates an iframe within their site.

sample code:

<iframe src="http://www.domain.net/show.php?user=siteroute&aw=125&ah=125" width=125 height=125 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling="no"></iframe>

The tricky thing is...if they paste the above code 2 times...2 iframe will appear in their page.

How do you allow only one iframe to display...and the other duplicates iframe to display blank or not appear at all?

can't seem to figure how to do it...need some experts to advice...
thanks!
xeeleeπŸ™‚

    1. Check to see if a session exists for the request.
    2. If it does, stop processing
    3. If it doesn't, create it and then do your processing.

      Thanks for the reply
      majik-sheff πŸ™‚

      page_A.html

      1. Check to see if a session exists for the request.
      2. If it does, stop processing
      3. If it doesn't, create it and then do your processing.

      let's say if i do the above for page_A.html...
      it would prevent all but the first iframe from loading...

      but if you reload page_A.html...the session will still exist right?... so no iframe will be shown at all on the reload...

      any suggestions guys ?

      thanks alot!

        Instead of a full blown session, try using a cookie that expires in a short time, like 15 seconds.

          Write a Reply...