Hey guys...here is the code that I have for my form:
$dateCheck = $FirstDay;
?>
<div class="forms">;
<form name ="dates" id="dates" action="<?php echo($_SERVER['PHP_SELF']); ?>" method="post">
<?
while($dateCheck < $LastDay){
$year = substr($dateCheck,0,4);
$month = (int)substr($dateCheck,5,2);
$day =substr($dateCheck,8,2);
$dateCheck = mktime(0,0,0,date($month),date($day)+$daysToShow,date($year));
$daysToShow=7;
$dateCheck = date('Y-m-d',$dateCheck);
?>
<input type="submit" name="<?php echo $dateCheck;?>" value="<?php echo $dateCheck;?>"/><br/>";
</form></div>
<?php
}
if(isset($_POST['$dateCheck'])){
echo $dateCheck;
}
I have never seen this error before...but this is what it says:
Not Found
The requested URL /Timesheet/$_SERVER['PHP_SELF'] was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
and I get that error when I try to click one of the submit buttons
It is probably just something stupid that I am missing...im tired 🙁
Thanks