General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old January 3rd, 2003, 10:37 AM
Taelo Taelo is offline
5B's
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: PC, FL
Posts: 366 Taelo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 30 m 59 sec
Reputation Power: 7
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

Reply With Quote
  #2  
Old January 3rd, 2003, 12:43 PM
Taelo Taelo is offline
5B's
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: PC, FL
Posts: 366 Taelo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 30 m 59 sec
Reputation Power: 7
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:
<iframe src="include.php<?=$query_string?>"></iframe
__________________
-- Jason

Reply With Quote
  #3  
Old January 3rd, 2003, 05:27 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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.

Reply With Quote
  #4  
Old January 3rd, 2003, 05:56 PM
Taelo Taelo is offline
5B's
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: PC, FL
Posts: 366 Taelo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 30 m 59 sec
Reputation Power: 7
agreed

but the only servers I work on are the ones I control

Reply With Quote
  #5  
Old January 3rd, 2003, 06:37 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
ok, but i always plan for the un-planned

Reply With Quote
  #6  
Old January 3rd, 2003, 07:27 PM
Taelo Taelo is offline
5B's
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: PC, FL
Posts: 366 Taelo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 30 m 59 sec
Reputation Power: 7
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

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > Passing $_GET[] args to an iframe


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT