Form submit dialog
<p>I have a basic form that asks for certain information and then validates the form using javascript before actually submitting it to a seperate php file to email the form submission to me however, after successfully submitting the form, it goes to blank page and then a Thank you popup shows up. How do I set it so hitting the submit button doesn't go to a new page but just displays the popup on the current page? </p>

<p>My code for filling out the form is:</p>

<pre><code>&lt;form action="send_group.php" method="post" onsubmit='return formValidator()'&gt;
//Asks to input information
    &lt;input type="submit" value="Submit" /&gt;
&lt;/form&gt;
</code></pre>

<p>My PHP code is:</p>

<pre><code>&lt;?php
$webmaster_email = "email@email.com"; //E-mail the message will be sent to

$info = $_REQUEST['info'] ;
$info1= $_REQUEST['info1'] ;
$info2= $_REQUEST['info2'] ;
$info3= $_REQUEST['info4'] ;

mail( "$webmaster_email", "Information Form Submission",
    "Info: $info
Info1: $info1
Info2: $info2
Info3: $info3" );

echo "&lt;script type='text/javascript'&gt;\n";
echo "alert('Thank you for your booking request. We will get back to you as soon as possible.');\n";
echo "&lt;/script&gt;";
?&gt;
</code></pre>
