Jump to content

Archived

This topic is now archived and is closed to further replies.

Schlo_50

Usernames

Recommended Posts

What code snippet can i use to make sure that my registration form doesn't submit, but instead displays an error message when a user tries to register but the username they have chose is already in taken?

Thanks guys!
-Schlo

Share this post


Link to post
Share on other sites
You're going to need to allow the form to submit anyway.  Once it checks the database to see if the user exists, it either registers them or it spits out an error, returning them to the page, the fields can be pre-filled with the values they already entered.

Regards
Huggie

Share this post


Link to post
Share on other sites
Unless you use something like ajax to check.

Orio.

Share this post


Link to post
Share on other sites
[quote]
Unless you use something like ajax to check.
[/quote]

I didn't want to explain that route, am a little too hungover for that one :D

Regards
Huggie

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.