Jump to content

Email Addresses in Database


Irksome

Recommended Posts

Hi,

 

I've just created a login system, and everything works fine. There's only one problem that I'm faced with at the moment, and that's the update profile page.

 

Now when you appear on this page, the data form fields show up, containing your current username, email address, name etc. But when you click submit, it comes back with "Your email is already in use!". Yes it's in use, because the user is signed up with that address.

 

What piece of code would I need to add in order to update the profile without getting an email in use error?

 

Any help would be appreciated.

 

Thanks.

Link to comment
Share on other sites

Some would give user's and id and those would be passed along to each page, just compare id's. If the updater_id == db_id then it should be fine. If you don't want to use id's, then you might implement fields for "old" username & password to enter for comparison (if changed) before updating.

 

Any of that sound good?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.