Why Php Form Adds Slashes To Data Information Sent When Submit

Mobile
feeds
Welcome Login | Register

Why Php Form Adds Slashes To Data Information Sent When Submit
  Forums Index
      » PHP Forums
        » » why php form adds slashes to data information sent when submit



Why Php Form Adds Slashes To Data Information Sent When Submit
Post Description:
Post Tags: why, php, form, adds, slashes, to, data, information, sent, when, submit, free php support, php scripts, php questions, php answers, programming, codes, scripts
This Post Has Been Viewed 139 Times Since Sun Feb 24, 2008 2:30 pm Posted By hostman with 0 replies
Next Post »» php how to stop a loop from looping when a comparison is true
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


Leave Your Comments






Share
URL:
You can use this HTML code to put it on your website to show your friends this wallpaper. Use this code on your profile like myspace, friendster, Facebook or others. Just Copy and Paste it in your HTML on your websites



Fourms BBCODE:
BBCODE is use on forums. You can put this code on all your BBCODE enabled forums like PhpBB, vBulletin® and others. Just Copy and Paste this code on your Posts and Replies on your forums





Comments and replies About Why Php Form Adds Slashes To Data Information Sent When Submit




(0) Comments