I am trying to insert data in through a html form and it creates a row in the database but the data is blank
$desimp=implode($design_array, ",");
$desarray=array($desimp,$desother);
$finarray=implode($desarray,"");
$design=str_replace("Other","",$finarray);
if($remedy =='Other'){
$remedyreturn=$remother;
}
else{
$remedyreturn=$remedy;
}
$sql="INSERT INTO test(firstname,lastname) VALUES ('$firstname','$lastname')";
$result=mysql_query($sql);
mysql_close();
and the html
<p><font size="5">Welcome to the Employee</font></p>
<p><font size="5">Check-In Page</font></p>
<p> </p>
<p align="left"><font size="3">Please Enter Personnel Information:</font></p>
<form method="post" action="name.php">
<p align="center"><font size="3">First Name:
<input name="f_name" type="text" size="20">
Last Name:
<input name="l_name" type="text" size="20">
</font></p>
<p align="center"> </p>
<p align="right"><font size="3">
<input type="Submit" value="Submit">
</font></p>
</form>
Any help will be greatly appreciated.