right, use $POST['field_name'] to get info from the db, or alternativly use extract($POST) works similar to the register_globals
mysql_connect($host,$username,$password) or die("Unable connect to $host");
@mysql_select_db($database) or die( "Unable to select database");
extract($_POST);// this converts the field names of the form into a variable of the same name with the value of the form info
$insert="INSERT INTO journal (year, day, day_of_week, month, mood, entry) VALUES ('$year','$day','$day_of_week','$month','$moo
d','$entry')";
mysql_query($insert);
if (!$insert) {
die("Info could not be inserted into the db");
} else {
echo "Woohoo journal updated!";
}
mysql_close();