OK here's another thought. I would still like to see an alert box since most peeps have their java turned on (don't they need it on for vShare to work? I'll have to check that....) [EDIT: They need it if they want to be able to post comments]
It was brought to my attention that using Java would make bypassing the check easy if a person has it turned off...so....how about including something that if their java is turned off, they will still see the message...something along these lines which I found at dynamic drive forums (this is for when the email is already taken, but it gives you an idea of what I'm talking about):
Code:
?>
<script type="text/javascript">
alert("The email address <?php echo $_POST['email']; ?> is already registered.");
history.back();
</script>
<?php
//THIS CODE IS UNCOMMENTED
//So that people without JS can still see the message.
die("The email address '" . $_POST['email'] ."' is already registered");
//END
//print '<script type="text/javascript">';
//print 'alert("The email address ' . $_POST['email'] .' is already registered")';
//print '</script>';
}
Last edited by grynmoors; 05-20-2009 at 04:34 PM.
If it's not fun, stop doing it!
Bookmarks