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
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
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
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
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
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
6 matches
Mail list logo