<html xmlns="http://www.w3.org//1999/xhtml">
<html>
<head>
<title></title>
</head>
<?php
error_reporting (E_ALL ^ E_NOTICE);
$course=$POST['course'];
$title=$POST['title'];
$fname=$POST['fname'];
$lname=$POST['lname'];
$yearborn=$_POST['yearborn'];
$gender=$POST['gender'];
$ic=$POST['ic'];
$email=$POST['email'];
$hnumber=$POST['hnumber'];
$mnumber=$_POST['mnumber'];
$city=$POST['city'];
$province=$POST['province'];
$country=$POST['country'];
$postcode=$POST['postcode'];
$con=mysql_connect("localhost","root","");
if(!$con)
{
die('could not connect: '.mysql_error());
}
mysql_select_db("groupproject", $con);
$sql="INSERT INTO application(course, title, fname, lname, yearborn, gender, ic, email, hnumber, mnumber, city, province, country, postcode)
VALUES
($course, $title, $fname, $lname, $yearborn, $gender, $ic, $email, $hnumber, $mnumber, $city, $province, $country, $postcode)";
if(!mysql_query($sql,$con))
{
die('Error:' .mysql_error());
}
echo "Your application has been delivered to our department";
mysql_close($con);
?>
</table>
</body>
</html>