Connecting Tech Pros Worldwide Help | Site Map

How to display the page contents in a textarea

Newbie
 
Join Date: Dec 2007
Posts: 15
#1: Jan 14 '08
Hi,

I have some php pages.In the first page there are some check boxes .When the user selects the check boxes and clicks a button the selected values are displayed in the second php page.The third php page is a form which has a textarea.I want the selected values to be displayed in the textarea of the third page.how could this be done?Pl guide.

Thanks in advance.
code green's Avatar
Expert
 
Join Date: Mar 2007
Location: England
Posts: 1,076
#2: Jan 14 '08

re: How to display the page contents in a textarea


How are the selected values displayed in second php.
If they are in test boxes as part of another form then you can read the POST variables in third php.
If not you could pass the values as hidden variables or even URL variables from second to third.
Markus's Avatar
Moderator
 
Join Date: Jun 2007
Location: York, England, with wolves.
Posts: 4,936
#3: Jan 14 '08

re: How to display the page contents in a textarea


and then
[php]
<textarea>
<?php echo $_variable_name;?>
</textarea>
[/php]
Reply