biggles1212 Posted December 21, 2014 Posted December 21, 2014 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?
biggles1212 Posted December 21, 2014 Author Posted December 21, 2014 What I have done as a stop gap measure is two email fields and another field that combines the two with @ between them. It works but don't have any idea why its adding the in the first place.
webko Posted January 6, 2015 Posted January 6, 2015 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'));
Recommended Posts
This topic is 3903 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 accountSign in
Already have an account? Sign in here.
Sign In Now