|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Passing $_GET[] args to an iframe
I have a site that I am designing and I load all my pages into an iframe. This is fine except for the fact that I can't pass $_GET[] args to each page because the page that would need the args is in the iframe (an included file).
I know that if you are working with the included file in the iframe, you can use the target="_parent" for links and such. Is there a way to reverse this so I can pass args to an included page via an iframe? TIA -- Jase |
|
#2
|
|||
|
|||
|
I have an idea,....lol
on the page with the iframe I do a check to see if any $_GET[] args have been set. If they have been I include the query string in the iframe tag. PHP Code:
__________________
-- Jason |
|
#3
|
|||
|
|||
|
just a word of warning
<?=$query_string?> should be <?php echo $query_string; ?> if you move to a server that doesnt support short tags, your BUGGERED, hence even tho it may take a few extra seconds, you should take the extra time to add the full php and echo tags. |
|
#4
|
|||
|
|||
|
agreed
![]() but the only servers I work on are the ones I control ![]() |
|
#5
|
|||
|
|||
|
ok, but i always plan for the un-planned
|
|
#6
|
|||
|
|||
|
good philosophy
![]() and there are certain things I will take into consideration,....but some of the things that comes as on by default in the php.ini I tend to code around ![]() But then again,...I design my stuff to work on my server not anyone elses ![]() Don't get me wrong though I believe in 'clean code' I just don't care about portability ![]() |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > Passing $_GET[] args to an iframe |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|