I'm trying to set the year month and day to the server on mysql in one field but am having trouble doing so. Here is my code so far
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<?php
// process form
include("connectDB.php");
$date = $_POST['year'].$_POST['month'].$_POST["day"];
$sql = "INSERT INTO reminder(eventName, eventNote, date, hour, min, amPM) VALUES ('{$_REQUEST['eventName']}','{$_REQUEST['eventNote']}','{$_REQUEST['date']}','{$_REQUEST['hour']}','{$_REQUEST['min']}','{$_REQUEST['amPM']}')";
$result = mysql_query($sql) or die("Sorry, please enter your correct informaiton \n");;
echo "Thank You! Your information has been submitted";
?>
</body>
</html>