i need help with a bit of code basically i want to be able to send information to database by clicking a submit button. here is the particular code i have so far
<?
if($submit)
{
$sql = "INSERT INTO shoppinglist3 (productname,price,tablename) VALUES ('$productname','$price','$table')";
$result = mysql_query($sql);
}
?>
<form method="post" action="">
<input type="Submit" name="submit" value="Submit">
</form>
this does not work properly any ideas would be appreciated
cheers
john