I used the below but the echo doesn't work ?<?php
$apt=$_POST['apt'];
$name=$_POST['name'];
$datereceived=$_POST['datereceived'];
$time=$_POST['time'];
$symptom=$_POST['symptom'];
$action=$_POST['action'];
$compmo=$_POST['compmo'];
$compday=$_POST['compday'];
$compyear=$_POST['compyear'];
$ordno=$_POST['ordno'];
$stat = mysql_connect("localhost","root","") or die('Unable to connect to database: ' . mysql_error());
$stat = mysql_select_db("maintdb") or die('Unable to select database: ' . mysql_error());
$query = "INSERT INTO maintdata
(apt,name,datereceived,time,symptom,action,compmo, compday,compyear,ordno)
VALUES('$apt','$name','$datereceived','$time','$sy mptom','$action','$compmo','$compday','$compyear', '$or
dno')";
// ****************************************
echo "apt $apt data inserted<br /><br />";
// ***************************************
$stat = mysql_query($query) or die('Query failed: ' . mysql_error());
mysql_close();
?>
<html>
<script type="text/javascript">
location.href = "
http://localhost/files/form.html";
</script>
</html>
<?php?>