Populate a textarea php

I am attempting to populate a textarea via php. I have a <form>

<a href=“http://glsbrakes.com/GLS_Orders/order2.php
ornament=Action+Heroes”>
<img border=“0” src=“bin1/ActionH.jpg” width=“142” height=“106” title=“Action Heroes”></a>

at www.glsbrakes.com/Ornaments/Bin1.htm (double click top picture)

<textarea cols=“20” rows=“3” name=“comments” id=“comments”><?php if(isset($_GET[‘ornament’])) echo $_GET[‘ornament’]; ?></textarea>

at www.glsbrakes.com/GLS_Orders/order2.php

But I am not sure how the php $_GET goes or where?

Thank you.

Right,

<form method=“post” action=“http://www.glsbrakes.com/GLS_Orders/order2.php”>
<input name=“comments” type=“hidden” textarea=“Action Heroes” />
<a target=“_parent” href=“http://glsbrakes.com/GLS_Orders/order2.php”>
<img class=“expando” border=“0” src=“bin1/ActionH.jpg” width=“142” height=“106” title=“Action Heroes”></a></a></p>
<a href=“ActionH.jpg” title=“Action Heroes”></span>
</a></form>

I am not sure how that works on the textarea page.

If I’m reading it correctly you have a form which visitors can fill in and then submit the data to another form/text area. You are using POST in your form so you should be using $_POST instead of $_GET.

I’m not sure I understand the question? :shifty:

Ok, this is what your form should use on page one (I’m using the textarea only for this example):

Page one:


<form enctype="multipart/form-data" action="pagetwo.php" method="post" name="form1">
<textarea name="textbox" cols="45" rows="20"></textarea>
<input type="submit" name="submit" value="Submit Form" />
<input name="reset" type="reset" value="Reset Form" />    
</form>

Page two:


<form enctype="multipart/form-data" action="whereever.php" method="post" name="form2">
<textarea name="textbox" cols="45" rows="20"><? if(isset($_POST['textarea'])) { echo $_POST['textarea']; } ?></textarea>
<input type="submit" name="submit" value="Submit Form" />
<input name="reset" type="reset" value="Reset Form" />    
</form>

The data will be sent over to the next form filling in the text box on form 2.