psoting hidden string
Posted: Sun May 19, 2002 5:45 am
Problem:- I need to pass text from one page to another using hidden input like this:-
(page1) <textarea name=message>...form...post...etc,
(page2)<?php echo $message;
echo "<input type=hidden value=$message>"; ?>
(page3) <?php echo $message; ?>
This works fine until I use an apostrophe ' the mesage is displayed fine in page2 but page3 only displays the part of the textarea before the apostrophe '.
I have tried addslashes()/stripslashes() but this makes no difference
Help appreciated
Thanks
(page1) <textarea name=message>...form...post...etc,
(page2)<?php echo $message;
echo "<input type=hidden value=$message>"; ?>
(page3) <?php echo $message; ?>
This works fine until I use an apostrophe ' the mesage is displayed fine in page2 but page3 only displays the part of the textarea before the apostrophe '.
I have tried addslashes()/stripslashes() but this makes no difference
Help appreciated
Thanks