OK, it's been a while since I've programmed anything in PHP...what am I missing here? If I print_r the post variable, I get the submit, but not the input field. I talked tech support at my hosting company and all they could tell me was that it was hitting a mod sec rule .
<?php
if (!$_POST) {
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery UI Datepicker - Animations</title>
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
<link rel="stylesheet" href="/resources/demos/style.css">
<script>
$(function() {
$( "#date1" ).datepicker({ minDate: 0, maxDate: "+36M" });
});
</script>
</head>
<body>
<form method="post" action="#">
<input type="text" id="date1" size="8">
<br />
<input type="text" id="date2" size="8">
<br />
<input type="submit" name="submit">
</form>
</body>
</html>
<?php
} else {
echo $_POST['post1'];
echo $_POST['post2'];
}
?>