Google is not quite returning anything useful, perhaps I'm searching for the wrong thing.
Basically, I have a form. Username, Email and Password.
I have a MySQDB with id, username, firstname, lastname, password
When the user registers using a strict (corporate) email, I would like the PHP to handle exploding the email (delimiting at the .) to automagically populate the database firstname and lastname.
ie, User form shows:
Username: django x2
Email: [email protected]
Password: something
Then on submit, the DB will be populated with
Username: django x2
Firstname: django
Lastname: x2
Email: [email protected]
Password: hashvalue
Alternatively, I guess it would be ok for a SQL timer job to come along and do that work (if Explode or a similar functions works in there).
TIA
Basically, I have a form. Username, Email and Password.
I have a MySQDB with id, username, firstname, lastname, password
When the user registers using a strict (corporate) email, I would like the PHP to handle exploding the email (delimiting at the .) to automagically populate the database firstname and lastname.
ie, User form shows:
Username: django x2
Email: [email protected]
Password: something
Then on submit, the DB will be populated with
Username: django x2
Firstname: django
Lastname: x2
Email: [email protected]
Password: hashvalue
Alternatively, I guess it would be ok for a SQL timer job to come along and do that work (if Explode or a similar functions works in there).
TIA