Why Php Form Adds Slashes To Data Information Sent When Submit
why php form adds slashes to data information sent when submit
why, php, form, adds, slashes, to, data, information, sent, when, submit
Why Php Form Adds Slashes To Data Information Sent When Submit
Post Description: why php form adds slashes to data information sent when submit
POST# 468
Posted On: Fri Feb 29, 2008 12:01 pm
web hosting
Topic: Why Php Form Adds Slashes To Data Information Sent When Submit
have you noticed that when you have a php webform the form add / slashes to some characters, for example on qoutes and apostrophe before them.

well to overcome this you can use these functions, it will remove the slash that are added:

trim(stripslashes($_POST['somedata']))

you can see more on this post:

another-way-to-use-mysql-real-escape-string-instead-trimstripslashes


No Repies
(0) Comments for Why Php Form Adds Slashes To Data Information Sent When Submit

What do you think?

* name:  

* email:  

* Please enter comments:


Receive Replies on my Comments
(An email will be sent to you when someone replies to your comments)

Add image to comments
yes no             upload