tvollmer
08-26-2002, 09:53 AM
Ok, I am fairly new to this whole PHP thing.
I have a script that has a form to enter a username and password.
This script then sends the username and password to a second script as variables.
Now what I want to do in the second script is this:
(after code for opening the database)
* Check to see if the username is already in the "users" table
* If the username IS in the "users" table, return an error
* if the username IS NOT in the "users" table, create a new field in the table with the username and password as data.
I this an easy thing to accomplish?
Todd
I have a script that has a form to enter a username and password.
This script then sends the username and password to a second script as variables.
Now what I want to do in the second script is this:
(after code for opening the database)
* Check to see if the username is already in the "users" table
* If the username IS in the "users" table, return an error
* if the username IS NOT in the "users" table, create a new field in the table with the username and password as data.
I this an easy thing to accomplish?
Todd