|
Your tips worked thanks for the help.
I rewrote the script without the username validation, maybe unnecessary but I thought I might think of something that I forgot. Everything works perfect now.
I got it to add a user to the database last night. I had a lil problem because the username was unique in the db and I wasn't entering it with the query. So it didn't add more than one user. A quick change to the query fixed that.
Then I wanted to validate the username against the db to see if it was previously used. That worked perfectly too after a lil debugging. It now prints a message on successful registration and if the username is taken already, and any other errors.
I was thinking of validating the email address to make sure no one enters the same email twice in the db. But that seemed to be redundant. What two people will register with the same email?
Anyway, Thanks for your help.
Now I have to tackle the login script and what to do on successful login, cookie or session, redirect, etc.
|