echo textarea field on form
Posted: Tue Jun 15, 2010 2:25 pm
I have a form with several fields on it and I want to echo the value from the table in the form. This is an update page for some data already in my database. I have used text fields before and the echo works fine, but if I define a textarea field
<textarea name="course_desc" cols="30" rows="10" value='<?php echo $course_desc; ?>' </textarea>
Its giving me an error saying that the value attribute is not allowed on textarea fields.
<textarea name="course_desc" cols="30" rows="10" value='<?php echo $course_desc; ?>' </textarea>
Its giving me an error saying that the value attribute is not allowed on textarea fields.