Will someone tell me why the below does not add a record to my database. It just displays the source code?
<form action="waitinsert.
php" method="post> is from my form
waitinsert.
php is the name of the program
<?
$username="root";
$password="";
$database="hoappsdb";
$entrytype=$_POST['entrytype'];
$appl=$_POST['appl'];
$date=$_POST['date'];
$time=$_POST['time'];
$name=$_POST['name'];
$racegend=$_POST['racegend'];
$ethnicity=$_POST['ethnicity'];
$laborhsg=$_POST['laborhsg'];
$displ=$_POST['displ'];
$incomelevel=$_POST['incomelevel'];
$brneeded=$_POST['brneeded'];
$moveindate=$_POST['moveindate'];
$removaldate=$_POST['removaldate'];
$code=$_POST['code'];
$comments=$_POST['comments'];
mysql_connect(localhost,$username,$password);
mysql_select_db($database) or die( "Unable to select database");
$query = "INSERT INTO waitlist VALUES ('$entrytype','$appl','$date','$time','$name','$re cegend','$ethnicity','$laborhsg','$displ','$income level','$brneeded','$moveindate','$removaldate','$ code','$comments')";
mysql_query($query);
mysql_close();
?>