Jump to content

Email Address Adds \ Before @


This topic is 3396 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hi all,

 

I am using FMStudio to do my PHP for me. 

I have a webpage where the clients can amend their contact details including their email address.

 

When you hit the submit / save button everything updates perfectly but the email address whether you change it or not seems to add '' before the @ symbol. 

 

If I remove the @ symbol and hit save it doesn't add it. 

Seems to be something to do with the @.

 

Any ideas at all?

Link to comment
Share on other sites

  • 3 weeks later...

Make sure you have the encoding of the page set correctly

 

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

 

You could also use stripslashes on the field before inputting to the database. If the field is called 'email'

 

$email = stripslashes($_POST('email'));

Link to comment
Share on other sites

This topic is 3396 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.