javascript prompt input
<pre><code>function show_prompt()
{
var name=prompt("Please enter your name");

}
</code></pre>

<p>I am calling this function when a button is clicked before submitting the form. </p>

<p>How would I post the 'name' var with form so I can use it with php?</p>

<p>Also, would it be possible to  verify the user input before letting it to be submitted? For example to make sure it's at least 4 characters? The user should not be able to click the button before the input meets the criteria. I'm guessing that is not possible, at least with the alert() function. Or could it display another alert message if the input is invalid and re-prompt?</p>
