.Darkman Posted May 7, 2007 Share Posted May 7, 2007 Hello everybody, Does anyone know how to pass the "GET" variable into an iframe. I have the URL as http://mysite.com/search.php?s=term I would like to pass the GET variable "s" into an iframe. Please Help Thanks, Quote Link to comment https://forums.phpfreaks.com/topic/50342-passing-get-variable-into-iframe/ Share on other sites More sharing options...
jitesh Posted May 7, 2007 Share Posted May 7, 2007 <iframe src=" http://iframesite.com/search.php?s=term" ............> Quote Link to comment https://forums.phpfreaks.com/topic/50342-passing-get-variable-into-iframe/#findComment-247171 Share on other sites More sharing options...
.Darkman Posted May 7, 2007 Author Share Posted May 7, 2007 wow ! Thanks a lot. Great site this is. I get answers in few seconds. Quote Link to comment https://forums.phpfreaks.com/topic/50342-passing-get-variable-into-iframe/#findComment-247182 Share on other sites More sharing options...
igor berger Posted May 7, 2007 Share Posted May 7, 2007 You can also use sessions or global. But it is depending if it user inputted or something you carry from page to page in your php! For user input use $_GET If you passing some variable in a background process you can use get but make sure to do referrer check, or someone my hijack your script! OR a bit more advance use sessions, but sessions require cookies or a very long ugly string! I have not used GLOBAL because the PHP community does not really like it, for security reason. Quote Link to comment https://forums.phpfreaks.com/topic/50342-passing-get-variable-into-iframe/#findComment-247184 Share on other sites More sharing options...
.Darkman Posted May 7, 2007 Author Share Posted May 7, 2007 Oh ! Thanks for these tips too. Quote Link to comment https://forums.phpfreaks.com/topic/50342-passing-get-variable-into-iframe/#findComment-247186 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.