Code: Select all
$sql = "INSERT INTO test SET " .
"test_id='4', " .
"test1='{$_POSTї"form_test1"]}', " .
"test2='{$_POSTї"form_test2"]}'";
$result = mysql_query($sql);Everytime I want to refer to a value posted from the form, I have to use $_POST. But all the tutorials I read tell me I can refer to input as if it were already a variable. Why can't I? Is it something to do with the fact that I am using PHP4, and the tutorials are written for PHP3?