how to insert form data
| From: | BigMark | Date: | Thu, 03 Jun 2004 03:13:23 +0000 |
| Subject: | how to insert form data | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-187437@lists.php.net to get a copy of this message | ||
I am trying to learn how to take the value of $name and $quote from a form
and put it in the database -whosaid
but obviuosly i have it all wrong. Can anyone point out what im doing wrong.
thx in advance
<?php
include("connect.php");
$name = $_POST['name'];
$quote = $_POST['quote'];
$sql = "INSERT INTO whosaid values (name='$name',quote='$quote');
?>