-
Popup window and html forms
Hi,
I have a simple html form which when submitted I want to popup a new window which I can control the size of. Further, in the popup window I want to be able to access the form data.
This is what I have done so far......
<form>
<input type=text name=email size=27>
<input class=button type="image" src="images/submit.jpg" onClick="window.open('send.php?subscribe=1', 'newWindow','width=300,height=150,'+'status=no,toolbar=no,menubar=no')">
</form>
When I submit the popup windows opens correctly and I am trying to access and output the two variables with php as follows:
$email = $_POST["email"];
$subscribe = $_GET["subscribe"];
echo $email $subscribe;
Only the 'subscribe' variable which is passed in the url outputs correctly. So my question is how do I accesss the variable input by the user into the form from the original page
Many thanks in advance.
Rob.
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks