Form results in popup window
am 15.11.2007 12:18:27 von damezumariI created two test files:
onsubmit="window.open('testform2.php','popup','height=150,wi dth=50');">
First name:
and
echo $_POST[firstname];
?>
The idea was to open testform2.php in a window where I decided the
height and width. Instead two windows opened. testform2.php in one
window and the popup in another. The first name was printed in the
first, but not in the second.
I take this to mean that the way to achieve what I want is to use
Javascript like this:
First name:
p>
and
echo $_GET[firstname];
?>
Or, is there a simpler/better way? It is not very safe to pass all the
variables using parameters.
Regards,
Jan Nordgeen