[php]
if ($_POST['email'] != $_POST['email_again']) {
die('Your emails did not match');
}
[/php]
Hello and thank you.
I have this code but, what where exactly should I compare the strings then if email was wrong just lift the info there but if right write it in the db.
Thank for any help.
[PHP]
<tr>
<td width="20%">Email:</td>
<td width="80%"><input name="email" type="text" size=45 maxlength=80 value="<?if (isset($email)) print $email; ?>"></td>
</tr>
<tr>
<td width="20%">Confirm Email:</td>
<td width="80%"><input name="email_again" type="text" size=45 maxlength=80 ></td>
</tr>
<tr>
<td> </td>
<td>
<input type="hidden" name="e_id" value="<?if (isset($_REQUEST['e_id'])) print $_REQUEST['e_id']?>">
<input type="submit" name="submit" value="Send Email"></td>
</tr>
[/PHP]