suess0r Posted December 11, 2006 Share Posted December 11, 2006 hey guys,i'm trying to have my site be 1 main page.-header-> never changes and is always on top(body) -> passing the pg1 variables to pg2 to pg3 but staying in an iframe that can scroll but is only refreshing on the body of the page and not the top and bottom (to save loading time)-footer-i am capable of doing everything with my variables as is.. (without using iframes)... but i'm a little confused on how i will POST my variables to the iframe - body, and if it will still be pg1.php, pg2.php, pg3.php that i'm POSTing to, and if the iframe body will be those pages?i can post code if u need, just trying to get my bearings.. thanks Link to comment https://forums.phpfreaks.com/topic/30258-passing-posted-variables-in-my-iframe/ Share on other sites More sharing options...
The Little Guy Posted December 11, 2006 Share Posted December 11, 2006 if your trying to pass variables through multiple pages, then you will need to use session variables.Otherwise I misunderstood. Link to comment https://forums.phpfreaks.com/topic/30258-passing-posted-variables-in-my-iframe/#findComment-139166 Share on other sites More sharing options...
mansuang Posted December 11, 2006 Share Posted December 11, 2006 my understanding is.you should give the name of iframe tag ex: [code]<iframe name="iframe1">[/code]then put target in form tag ex: [code]<form action="pg1.php" target="iframe1">[/code]hope it helps Link to comment https://forums.phpfreaks.com/topic/30258-passing-posted-variables-in-my-iframe/#findComment-139169 Share on other sites More sharing options...
suess0r Posted December 11, 2006 Author Share Posted December 11, 2006 hey, thanks so much.. but 1 more questionif i don't know the Height of the page that returns (Depending on the query size) is there a way I can figure out the height through my loop of some sort using PHP to set it at that, or some auto funciton??? thanks[quote] <? include('mheader.php'); ?> <table width="190" border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td colspan="3" align="center" valign="top"><iframe src="mpg1.php" width="190" height="420" frameborder="0" scrolling="no" name="pg1" align="center"> Frame's not supported by your browser, sorry...</iframe></td> </tr></table><p> </p><? include('mfooter.php'); ?>[/quote] Link to comment https://forums.phpfreaks.com/topic/30258-passing-posted-variables-in-my-iframe/#findComment-139261 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.