On Sat, Oct 18, 2003 at 12:24:44AM -0400, Will wrote:
:
: John W. Holmes wrote:
:
: >Will wrote:
: >
: >>I have a question on echoing text from a database into a form. The
: >>database is populated but it does not show up in the modify script
: >>page. Can someone help me??
: >>
: >>Here is the code that I am using:
: >><p><b>Notes:</b><br>
: >><textarea rows=5 cols=31 name=\"notes\" value=\"$notes\"
: >>wrap=virtual></textarea></p>
: >
: >There is no "value" attribute for a textarea...
: >
: ><textarea>$value</textarea>
:
: That worked great!! But how do I get the info from the modify script
: back into the database?? With that code: <textarea>$value</textarea>
: It does not populated the database with the new text that was modified.
: Is there another way to do it?? I am learning PHP on my own so bare
: with me.
There is no "value" attribute. But you still need to include the "name"
attribute if you want it to come back as a form variable:
echo "<p><b>Notes:</b><br>\n<textarea rows=5 cols=31 name=\"notes\"
wrap=virtual>" . htmlentities($value) . "</textarea></p>\n";
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php