Jump to content

Problem getting $_GET from within a frame


noon

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/64907-problem-getting-_get-from-within-a-frame/
Share on other sites

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.