December 21, 201411 yr 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?
December 21, 201411 yr Author 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.
January 6, 201511 yr 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'));
Create an account or sign in to comment