Posted by d88pak on 12/01/06 07:16
Hi,
I am new to PHP and trying to develop simple web application using php
but I can't figure out how to retain the text in textarea. For the text
boxes I was able to retain the text (in case user makes the mistakes in
filling up the form and telling them to correct the mistaken fields)
but text in textarea get completely erased. Is there a way to do this?
By the way code is something like this:
===========================
<input maxlength="255" size="40" name="title" value="<?php echo
$_POST['title']?>">
for text box this works
but
<textarea cols="50" rows="5" name="descr" value="<?php echo
$_POST['descr']?>"></textarea>
this doesn't work for text area
===========================
Please can somebody tell me how to achieve this?
Thanks!
Navigation:
[Reply to this message]
|