noon Posted August 14, 2007 Share Posted August 14, 2007 I have some php code inside a frame of an html page. I cannot seem to get any GET variables from the URL. I have some javascript inside the frame that I want to run based on a value from the GET. I am having trouble trying to figure out how to communicate that variable to the php page inside the frame. Quote Link to comment https://forums.phpfreaks.com/topic/64907-problem-getting-_get-from-within-a-frame/ Share on other sites More sharing options...
ViN86 Posted August 14, 2007 Share Posted August 14, 2007 did you consider using a $_SESSION variable? Quote Link to comment https://forums.phpfreaks.com/topic/64907-problem-getting-_get-from-within-a-frame/#findComment-323823 Share on other sites More sharing options...
noon Posted August 14, 2007 Author Share Posted August 14, 2007 no, i can try that though. should I assume its not possible to retrieve that GET then? Quote Link to comment https://forums.phpfreaks.com/topic/64907-problem-getting-_get-from-within-a-frame/#findComment-323824 Share on other sites More sharing options...
lemmin Posted August 14, 2007 Share Posted August 14, 2007 As long as the action property inside the form tag is pointing to your php file, it will receive the GET variables. If your php is in a different frame, you can name the frame using the name property and use target=name inside the action property of your form to make it display on a different frame. Quote Link to comment https://forums.phpfreaks.com/topic/64907-problem-getting-_get-from-within-a-frame/#findComment-323825 Share on other sites More sharing options...
ViN86 Posted August 14, 2007 Share Posted August 14, 2007 no, i can try that though. should I assume its not possible to retrieve that GET then? well, i was just thinkin of a quick fix. Quote Link to comment https://forums.phpfreaks.com/topic/64907-problem-getting-_get-from-within-a-frame/#findComment-323826 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.