tomyknoker
09-05-2007, 02:57 AM
I have a form which users fill out, and it get's emailed to me... If they say write 'James O'Reilly' it was coming to me as 'James O'/Reilly' so I added the following and it worked...
$name = stripslashes($_POST['name']);
Now I am wanting to insert the data into my database so underneath all my email etc I change that line to this...
$name = addslahes($_POST['name']);
Because it wasn't inserting into the databse unless it had slashes, but then in my database it insert's it as 'James O'/Reilly', do I just have to live with that?
$name = stripslashes($_POST['name']);
Now I am wanting to insert the data into my database so underneath all my email etc I change that line to this...
$name = addslahes($_POST['name']);
Because it wasn't inserting into the databse unless it had slashes, but then in my database it insert's it as 'James O'/Reilly', do I just have to live with that?