Possible Duplicate:
GET URL parameter in PHP
(Mind you I am fairly new to PHP and still learning) I have form:
<form name="checkingEmail">
E-Mail: <input type="text" name="email1" />
<br />
Retype E-Mail: <input type="text" name="email2" />
<br />
<input type="button" value="Submit" onClick="checkEmail()">
</form>
and I want to take the values from the User Input and do a simple If...Else statement after they hit "Submit"
PHP:
<?php
$email1 = blah //Value from email1 input form here;
$email2 = blah //Value from email2 input form here;
function checkEmail()
{
global $email1, $email2;
if($email1==$email2)
{
//Some Code Here
}
else
{
echo "Make sure your E-Mail addresses match";
}
}
?>