Javascript IS live. That's the point.
You could have it render onSubmit (an action added to the <form...> tag), or based on a button at the bottom of the form, but be sure to disable sending the form as well.
However, more secure, and more compatible would be doing this with php then.
PHP is server side so it gets the data then does stuff, then outputs html.
It would recieve the filled in form and output html to the user.
PHP Code:
PAGE 1:
<form action="next.php">
<input type="text" name="noun">
</form>
PAGE 2:
(next.php, or whatever, just need to match the action above)
<?php
echo "There was a $_GET['noun'].";
?>
That is a VERY simple example, but php is easy to use to manipulate submitted form values.
Also, it's server side, so the server must have php installed, but it outputs just html, so the browser will ALWAYS be compatible, unlike javascript where the user must have it (and the right version for that matter).
NOTE: PHP cannot be live. (AJAX is an exception here, but that is just a fancy name for using javascript to load php in the background, so it's just faking it anyway, and is complex, not very compatible, and not needed here.)
Bookmarks