- Forums
- PHP
- Why Php Form Adds Slashes To Data Information Sent When Submit
This Page Contains information about Why Php Form Adds Slashes To Data Information Sent When Submit By wallpaperama in category PHP with 0 Replies. [1099], Last Updated: Sat May 18, 2024
wallpaperama
Sun Feb 24, 2008
0 Comments
1249 Visits
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