I have that script:
$sql = "UPDATE $table_name5 SET
care_id = '$_POST[care_id]',
date = '$_POST[date]',
common = '$_POST[common]',
notes = '$_POST[notes]'
WHERE notes_id ='$_POST[notes_id]'";
$result = @mysql_query($sql,$conn) or die(mysql_error());
header("Location: main.php"); exit;
But my question is when I hit the submit button and check the database it has nothing in the "notes" field. I tried a hidden field in the modify script but it did not work.
Will
John Nichel wrote:
Will wrote:
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.
Will
You'll have to submit the form, and run an update query on your database.
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>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php