Posted by Krustov on 12/29/05 04:54
<comp.lang.php , Wayne , wayne@somedomain.com>
<dotsp4$m76$1@ctb-nnrp2.saix.net>
<Wed, 28 Dec 2005 13:23:43 +0200>
> I am looking at adding a form to my site allowing visitors to
> subscribe with a username. The form should ideally first check
> to see if the username has been taken (From text file or MYSQL database)
> and then submit the form to my email address. If the username is taken it
> should return a message to the user advising them of this.
>
> Can anyone perhaps assist with this or direct me to a tutorial for the
> checking of the username part? The rest of the form is working.
>
On the next page - just do a simple if ($qaz==$wsx) {print "username
taken - click on back and try another username"; exit;}
If the username isnt taken it then it just carrys on with the rest of
the page .
[Back to original message]
|