PHP, Javascript, Hidden Forms, and Hidden Frames... help!
Posted: Fri Jul 25, 2008 3:01 pm
Ok, I'm trying to make a webpage and this is what I would like to do:
-I would have a frameset that loads an html page in one frame and a php page in another (hidden) frame
-The user would enter some information in a form on the html page
-A php page would be loaded into the hidden frame and would get the information from the html form
-the php script would process the information and return the information to the html page (or make the info available, perhaps in a hidden form, so that a javascript script could get the information)
I'm wondering what the best way is to get the information to the php script. I could get the data from the form with javascript and then use javascript to load a url into the other frame with the variables attached (parent.frames[1].document.location='phpfile.php&var='+var). But I would like to know if there is a different way to do it that would perhaps be better? and if i use the method i just stated, how would I get the variable from the url?
thanks for any help!
-I would have a frameset that loads an html page in one frame and a php page in another (hidden) frame
-The user would enter some information in a form on the html page
-A php page would be loaded into the hidden frame and would get the information from the html form
-the php script would process the information and return the information to the html page (or make the info available, perhaps in a hidden form, so that a javascript script could get the information)
I'm wondering what the best way is to get the information to the php script. I could get the data from the form with javascript and then use javascript to load a url into the other frame with the variables attached (parent.frames[1].document.location='phpfile.php&var='+var). But I would like to know if there is a different way to do it that would perhaps be better? and if i use the method i just stated, how would I get the variable from the url?
thanks for any help!