Can someone help me figure out why this does not work? Upon Submit, it goes to "this page isnt working". The url shows the "id=1" when I fill out the form.....
<?php
include("config.php");
function renderForm($Site = '', $DriverNb ='', $DriverName = '', $FM = '', $DLM = '', $SafetyRep = '', $Issued = '', $Returned = '', $CameraSerial = '', $CameraStatus = '', $MonitorSerial = '', $MonitorStatus = '', $Comments = '', $error = '', $id = '')
{ ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>
<?php if ($id != '') { echo "Edit Record"; } else { echo "New Record"; } ?>
</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
</head>
<body>
<h1><?php if ($id != '') { echo "Edit Record"; } else { echo "New Record"; } ?></h1>
<?php if ($error != '') {
echo "<div style='padding:4px; border:1px solid red; color:red'>" . $error
. "</div>";
} ?>
<form action="" method="post">
<div>
<?php if ($id != '') { ?>
<input type="hidden" name="ID" value="<?php echo $id; ?>" />
<p>ID: <?php echo $id; ?></p>
<?php } ?>
<strong>Site: *</strong> <input type="text" name="Site" value="<?php echo $Site; ?>"/><br/>
<strong>Driver Nb: </strong> <input type="text" name="Driver Nb" value="<?php echo $DriverNb; ?>"/><br/>
<strong>Driver Name: </strong> <input type="text" name="Driver Name" value="<?php echo $DriverName; ?>"/><br/>
<strong>FM: </strong> <input type="text" name="FM" value="<?php echo $FM; ?>"/><br/>
<strong>DLM: </strong> <input type="text" name="DLM" value="<?php echo $DLM; ?>"/><br/>
<strong>Safety Rep: </strong> <input type="text" name="Safety Rep" value="<?php echo $SafetyRep; ?>"/><br/>
<strong>Issued: </strong> <input type="date" name="Issued" value="<?php echo $Issued; ?>"/><br/>
<strong>Returned: </strong> <input type="date" name="Returned" value="<?php echo $Returned; ?>"/><br/>
<strong>Camera Serial: *</strong> <input type="text" name="Camera Serial" value="<?php echo $CameraSerial; ?>"/><br/>
<strong>Camera Status: </strong> <input type="text" name="Camera Status" value="<?php echo $CameraStatus; ?>"/><br/>
<strong>Monitor Serial: *</strong> <input type="text" name="Monitor Serial" value="<?php echo $MonitorSerial; ?>"/><br/>
<strong>Monitor Status: </strong> <input type="text" name="Monitor Status" value="<?php echo $MonitorStatus; ?>"/><br/>
<strong>Comments: </strong> <input type="text" name="Comments" value="<?php echo $Comments; ?>"/><br/>
<p>* Required</p>
<input type="submit" name="submit" value="Submit" />
</div>
</form>
</body>
</html>