Re: Text area with an echo command

From: Date: Sat, 18 Oct 2003 07:16:47 +0000
Subject: Re: Text area with an echo command
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-166605@lists.php.net to get a copy of this message
Will wrote:
John, 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
Make sure you have a 'name' attribute in your textarea.... <textarea name="notes"></textarea> -- By-Tor.com It's all about the Rush http://www.by-tor.com

« previous php.general (#166605) next »