Hi all 🙂
Ok first this is basically a membership registration script, the html form has the field names of: do_user, do_pass1, do_pass2, do_email1 and do_email2 (just text fields).
And all i want to do is insert them into my table which i can do easily, but what i want to do first is check that the membername that the user wants hasn't already been taken. And imnot sure how do to this..i know the method i want will basically be:
<?php
// check all fields have been filled
// check the username hasnt already been taken
// if the username is already in use, produce an error message telling the user to change the username
// if the username isn't in use, add all the fields to the table
?>
I can do all the insertions and checking etc, just apart from the membername checking? Could someone help me please?
The fields for the member table is as:
MemberName, Password, Email (as an example for this post)
Thanks a lot for any info and help!