Any thoughts on how to do this? All I want to be able to do is use JS to create a small popup from within the form, passing the arguments of the form to PHP and MySQL. Here's what I have so far:
form.html
Code:
<html>
<head>
<script language="JavaScript"></script>
...
<form method="post" action="form.php">
...
<input type="submit" name="submit" value="submit"
onclick="window.open('form.php', '', 'width=300, height=300');"></input>
</form>
...
</html>
The form.php file is as you would expect, opens a connection with MySQL and enters the form data, and gives you feedback on what you've just entered. It works fine alone, without using JS at all.
[edit]
I should mention that it does actually open a small 300x300 window, but the variables from the form aren't passed at all to the popup.
[/edit]