Albatross
Jul 21st, 2007, 04:41 AM
Mornin all, I have what should be an easy q today...
I have a form that a user fills out and when they hit submit, it does a number of things, one, it checks to see if the email address supplied is already in the db (in which case it kicks back an error n halts), otherwise, it comes back with a visual confirmation showing all data and loads the information into the db as a new record.
What I'm trying to do is to have it so that a unique, 10 digit number is autogenerated and attached to the same record that's returned and also loaded to the db with that same record. A serial number would be a fair description.
Any ideas?
I have a form that a user fills out and when they hit submit, it does a number of things, one, it checks to see if the email address supplied is already in the db (in which case it kicks back an error n halts), otherwise, it comes back with a visual confirmation showing all data and loads the information into the db as a new record.
What I'm trying to do is to have it so that a unique, 10 digit number is autogenerated and attached to the same record that's returned and also loaded to the db with that same record. A serial number would be a fair description.
Any ideas?