How To Remove Slashes From Php Web Forms \r\n

Mobile
feeds
Welcome Login | Register

How To Remove Slashes From Php Web Forms \r\n
  Forums Index
      » PHP Forums
        » » how to remove slashes from php web forms \r\n



How To Remove Slashes From Php Web Forms \r\n
Post Description:
Post Tags: how, to, remove, slashes, from, php, web, forms, rn, free php support, php scripts, php questions, php answers, programming, codes, scripts
This Post Has Been Viewed 936 Times Since Mon Feb 04, 2008 12:00 pm Posted By hostman with 2 replies
Next Post »» how to reformat text information from webform add return enter between lines
How To Remove Slashes From Php Web Forms \r\n
ok, so today i had a php webform and when i submitted the information in the textarea, my database was updated with rn character to represent the enter key but i didnt want this to show so to avoid this you can use this function:

lets say the name of my text area was called content

all you have to do is do this:
stripslashes($_REQUEST['page_content'])





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 How To Remove Slashes From Php Web Forms \r\n




:: 1 :: Reply #43005 Reply By sree On Mon Feb 25, 2008 1:52 am
it removes only 2 slashes suppose if we enter more than 2 slashes(\\\\\\) then what is the solution to remove that slashes
:: 2 :: Reply #69601 Reply By George On Sat Sep 06, 2008 8:54 am
i don't think the stripslashes function will do the job of removing the \r\n. it will only remove the slashes, leaving the rn with the rest of the text.

i would certainly like to see a working solution to this problem. i know there is one, but i haven't found it.