[PHP] Quotes in form textarea fields

2004-10-08 Thread Sam Smith
I swear I googled for an hour first. A user enters in a textarea field of FORM1.php: Bob is high Submitted to FROM2.php we get: Bob is \high\ In a hidden field in FROM2.php we store the value: type=hidden, value=? echo stripslashes($_POST['textarea']); ? Value now Bob is high Then from

Re: [PHP] Quotes in form textarea fields

2004-10-08 Thread Robby Russell
On Fri, 2004-10-08 at 06:22 -0700, Sam Smith wrote: I swear I googled for an hour first. A user enters in a textarea field of FORM1.php: Bob is high Submitted to FROM2.php we get: Bob is \high\ In a hidden field in FROM2.php we store the value: type=hidden, value=? echo

Re: [PHP] Quotes in form textarea fields

2004-10-08 Thread Marek Kilimajer
Sam Smith wrote: I swear I googled for an hour first. A user enters in a textarea field of FORM1.php: Bob is high Submitted to FROM2.php we get: Bob is \high\ In a hidden field in FROM2.php we store the value: type=hidden, value=? echo stripslashes($_POST['textarea']); ? Value now Bob is high So

Re: [PHP] Quotes in form textarea fields

2004-10-08 Thread Jordi Canals
A user enters in a textarea field of FORM1.php: Bob is high Submitted to FROM2.php we get: Bob is \high\ Tha't's normal beacuse you have magic_quotes_gpc_on In a hidden field in FROM2.php we store the value: type=hidden, value=? echo stripslashes($_POST['textarea']); ? Value now Bob

Re: [PHP] Quotes in form textarea fields

2004-10-08 Thread Andrew Kreps
On Fri, 08 Oct 2004 06:22:22 -0700, Sam Smith [EMAIL PROTECTED] wrote: Then from FROM2.php we Submit BACK to FROM1.php and enter it back into the textarea field with: type=textarea, value=? echo $_POST['hidden']); ? I'd like to add that you can also use the following syntax for textarea

Re: [PHP] Quotes in form textarea fields

2004-10-08 Thread John Holmes
Andrew Kreps wrote: I'd like to add that you can also use the following syntax for textarea fields: input type=textarea?= $_POST['hidden'] ?/textarea which may also get you past the quoting problem. You mean you can use: textarea name=hidden?=htmlentities($_POST['hidden'])?/textarea unless you