I have a small form and im trying to get the data entered into it to go into my database but its not working.....
this is the section of it
$abc = $_POST["abc"];
$def = $_POST["def"];
$ghi = $_POST["ghi"];
$jkl = $_POST["jkl"];
$type = $_POST["type"];
if ((isset($_POST["abc"])) && (isset($_POST["ghi"])) && (isset($_POST["jkl"])) && (isset($_POST["def"])) && (isset($_POST["type"]))) {
$result = mysql_query("insert into names (abc, ghi, jkl, def, type) values ('".$abc."', '".$ghi."', '".$jkl."', '".$def."', '".$type."'");
I think there is something wrong with the variables not being entered as strings, but im not really sure.
this is the section of it
$abc = $_POST["abc"];
$def = $_POST["def"];
$ghi = $_POST["ghi"];
$jkl = $_POST["jkl"];
$type = $_POST["type"];
if ((isset($_POST["abc"])) && (isset($_POST["ghi"])) && (isset($_POST["jkl"])) && (isset($_POST["def"])) && (isset($_POST["type"]))) {
$result = mysql_query("insert into names (abc, ghi, jkl, def, type) values ('".$abc."', '".$ghi."', '".$jkl."', '".$def."', '".$type."'");
I think there is something wrong with the variables not being entered as strings, but im not really sure.