I want to be able someone to use my signup form.. but if they type an email that already exists in my database i want to be able to send them an error,
i assume i'll be using the "if" command, i'll be using some kind of code like this i take it?:
Code:
<?php
if ($_POST[teamname] = somecode here)
echo "The email you chose to signup with already exists! Please choose another!";
?>
What code would i put after the if ($_POST[email] = ???????)
and what is the best way to use an error on the same page?
If someone could help i'd be more than happy to give +REP.
Many thanks,
Jamie