Click to See Complete Forum and Search --> : Printing value in large text area


genista
06-05-2007, 06:55 AM
Hi!

Hopefully a simple one, I cannot get the value that a user enters to echo in a large text area when they hit submit on joining my site. Here is the code:


<tr><td>Training obtained and detail of colleges attended and dates:<BR> <TEXTAREA NAME="training" value="<?php echo $training; ?>"COLS=40 ROWS=6></TEXTAREA>
</td></tr>



Any ideas on what I am doing wrong?

Thanks,

G

Staggy11
06-05-2007, 09:24 AM
That part looks okay to me. Could you show the posting code and the code that sets the variable $training please. The only thing I could think of is that you are not setting $training properley.

stolzyboy
06-05-2007, 09:25 AM
textareas do not have VALUE=, the values goes between the opening and closing tags


<tr><td>Training obtained and detail of colleges attended and dates:<BR>
<TEXTAREA NAME="training" COLS="40" ROWS="6">
<?php echo $training; ?>
</TEXTAREA>
</td></tr>