Re: Text area with an echo command

From: Date: Sat, 18 Oct 2003 05:12:48 +0000
Subject: Re: Text area with an echo command
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-166596@lists.php.net to get a copy of this message
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";

« previous php.general (#166596) next »