King0r Posted April 12, 2008 Share Posted April 12, 2008 Hi I have read several articles on this issue but none refer to what I require. This is what I have: <frameset rows="*" cols="933,*" frameborder="NO" border="0" framespacing="0"> <frame src="example.com" name="leftFrame" scrolling="YES"> <frameset rows="*,160" cols="*" framespacing="0" frameborder="NO" border="0"> <frame src="logchat.php" name="mainFrame"> <frame src="extend.php" name="bottomFrame" scrolling="YES"> </frameset> </frameset> as you can see the frame named leftFrame is a external site. I'm wondering how to grab the variables set from within that page to display on the frame bottomFrame. I suppose it's possiable to make a local php file and retrieve the remote site within it and extract the variables. But the remote site contains links and it must be able I must be able to navigate that site within the frames. Any help much appreciated. Dave Link to comment https://forums.phpfreaks.com/topic/100753-passing-variables-within-frames/ Share on other sites More sharing options...
doni49 Posted April 13, 2008 Share Posted April 13, 2008 There's no reason that the page can't be loaded in the left frame AND let the page that loads in the right frame grab that same external web page (screen scraping) and get your variables and then continue loading the right page as appropriate. Just write the right page the same as you would if it was a freestanding page. Link to comment https://forums.phpfreaks.com/topic/100753-passing-variables-within-frames/#findComment-515833 Share on other sites More sharing options...
marcus Posted April 13, 2008 Share Posted April 13, 2008 As long as the form is passing the data to that frame there should be reason why it wouldn't work. <form method="post" action="data.php" target="mainFrame"> another example could be <?php $x = $_POST['x']; if($x){ echo "Your name is " . $_POST['name']; }else { ?> <form method="post" target="frame"> <input type="text" name="name"><input type="submit" name="x"></form><br><iframe name="frame" src="""></iframe> <?php } ?> Link to comment https://forums.phpfreaks.com/topic/100753-passing-variables-within-frames/#findComment-515866 Share on other sites More sharing options...
King0r Posted April 14, 2008 Author Share Posted April 14, 2008 Um maybe i didnt explain properly. ------------------------- | | [l] | [l] = link | [e] |-------| [e] = external site | | | |_____________|______| After user logs in using the login script on the [e] it will reload into the members area. When login is done the members area will have the address boo.com/index.php?page=home&sesid=124241 User will then inturn login to [l] and a link is displayed with a variable as a URL so <a href="boo.com/index.php?page=reject&sesid=124241">Reject</a> Pretty good example of what i need to do. If anyone can help it is much appreciated. Link to comment https://forums.phpfreaks.com/topic/100753-passing-variables-within-frames/#findComment-516539 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.