Passing variables to an IFRAME?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
cbrian
Forum Commoner
Posts: 97
Joined: Sun Feb 27, 2005 12:29 pm

Passing variables to an IFRAME?

Post by cbrian »

Is it possible to pass variables into an IFRAME? If so, how do I do it?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

yes, via the url, or Javascript.. depending on what you need/want... however as discussed many times, iframes and frames in general are a pain to pass data around with/in
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Never done it and haven't really ever worked with IFRAMES but if you can link to them using

Code: Select all

<a href="yadd_yadda_yadda.php" target="your_iframe">Link here</a>
then you could do it using $_GET
cbrian
Forum Commoner
Posts: 97
Joined: Sun Feb 27, 2005 12:29 pm

Post by cbrian »

okay, thanks.
Post Reply