Jump to content


Photo

Accessing query vars from an iframe


  • Please log in to reply
2 replies to this topic

#1 SCook

SCook
  • Members
  • PipPipPip
  • Advanced Member
  • 73 posts

Posted 16 March 2006 - 09:57 PM

Hi all,

I need to get values in a query string. I call a page, showcase.php?cat=1&subcat=2 let's say. Well, in showcase.php, I have an iframe which needs these vars too. What's the best way to do this? I think I could put them again in the src file call on teh iframe tag, this just occurred to me, but I'd like another way if possible. Thanks.

#2 ToonMariner

ToonMariner
  • Members
  • PipPipPip
  • Advanced Member
  • 3,342 posts
  • LocationNewcastle upon Tyne, UK

Posted 16 March 2006 - 10:01 PM

can you not place them in the url that specifies the file to display in the iframe?
follow me on twitter @PHPsycho

#3 txmedic03

txmedic03
  • Members
  • PipPipPip
  • Advanced Member
  • 313 posts
  • LocationCall, TX, USA

Posted 17 March 2006 - 01:13 AM

Place them in the url of the iframe if you absolutely insist on using iframes. They are a serious design faux pas.

SEMPER FIDELIS!

I can't stop you from doing something silly, but at least I can help you do it right.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users