I have created a php script that adds customers to a MySQL database but when the form is filled out and the data is posted to MySQL, i get the information entered in the fields sent to the database all in the correct way but i also get an empty record set. Does any one know why this is happening? Is it the script not excuting correctly or an issue with MYSQL? All help is appreciated (the code is below) HTML FORM <form name="formcheck" onsubmit="return formCheck(this);" action="insert_record.php" method="POST"> <table> <tr> <td></td> <td>Please supply information about the customer in the fields below</td> </tr> <tr> <td>Title</td> <form> <td><select name=title> <option value=Mr>Mr <option value=Ms>Ms <option value=Miss>Miss <option value=Mrs>Mrs</td> </select> </form> </tr> <tr> <td>Firstname</td> <td><input type=text name=fname size=30 /></td> </tr> <tr> <td>Surname</td> <td><input type=text name=sname size=30 /></td> </tr> <tr> <td>Address #1</td> <td><input type=text name=add1 size=50 /></td </tr> <tr> <td>Address #2</td> <td><input type=text name=add2 size=50 /></td> </tr> <tr> <td>Address #3</td> <td><input type=text name=add3 size=50 /></td> </tr> <tr> <td>Town/City</td> <td><input type=text name=town size=40 /></td> </tr> <tr> <td>County</td> <td><input type=text name=county size=40 /></td> </tr> <tr> <td>Post Code</td> <td><input type=number name=pcode size=7 /></td> </tr> <tr> <td>Telephone (Please include area code)</td> <td><input type=number name=tel size=11 /></td> </tr> <td>E-mail</td> <td><input type=text name=email size=50 /></td> </tr> <td>Username</td> <td><input type=text name=username size=30 /></td> </tr> <td>Password</td> <td><input type=password name=pass size=30 /></td> </tr> <tr> <td><input type=submit value=Submit></td> <td><input type=reset></td> </tr> </form> </td></tr></table> SCRIPT TO ADD ENTERD DATA TO DATABASE <? $C_Title=$_POST['title']; $C_Firstname=$_POST['fname']; $C_Surname=$_POST['sname']; $C_Address1=$_POST['add1']; $C_Address2=$_POST['add2']; $C_Address3=$_POST['add3']; $C_TownCity=$_POST['town']; $C_County=$_POST['county']; $C_PostCode=$_POST['pcode']; $C_Telephone=$_POST['tel']; $C_Email=$_POST['email']; $C_Username=$_POST['username']; $C_Password=$_POST['pass']; print($C_Title); print($C_Firstname); print($C_Surname); print($C_Address1); print($C_Address2); print($C_Address3); print($C_TownCity); print($C_County); print($C_PostCode); print($C_Telephone); print($C_Email); print($C_Username); print($C_Password); $db="hotelBooking"; $link = mysql_connect('localhost', 'root', ''); if (! $link) die("Could not connect to MySQL"); mysql_select_db($db , $link) or die("Could not select the database: ".mysql_error()); mysql_query("INSERT INTO customer (C_Title, C_Firstname, C_Surname, C_Address1, C_Address2, C_Address3, C_TownCity, C_County, C_PostCode, C_Telephone, C_Email, C_Username, C_Password) VALUES ('$C_Title', '$C_Firstname', '$C_Surname', '$C_Address1', '$C_Address2', '$C_Address3', '$C_TownCity', '$C_County', '$C_PostCode', '$C_Telephone', '$C_Email', '$C_Username', '$C_Password')")or die("Error Inserting Customer Details: ".mysql_error()); mysql_close($link); print "New Customer Record Added Sucessfully"; ?>