simple:
PHP Code:
<?php
/* This script will display a html form that allows new groups to be inserted into the 'Groups' table, which exists within the database 'Love_to_sing'. */
if ($user_name=="" or $password=="" or $group_name=="" or $city=="") {
error("One or more required fields were left blank.\\n".
"Please fill them in and try again.");
}
if ($submit == "submit") {
mysql_connect("localhost","root","castor");
mysql_select_db("Love_to_sing");
mysql_query("INSERT INTO groups SET
ID='$ID', user_name='$user_name', password='$password',
category='$category', group_name='$group_name', contact_name='$contact_name',
region='$region', address='$address', post_Code='post_Code', city='$city',
telephone='$telephone', fax='$fax', homepage='$homepage', email='$email', group_Information='$group_Information',
conditions_of_joining='$conditions_of_joining'");
echo "Thanx for your submission!";
exit();
}
You had a parenethasees (spelling?) where it ought not to have been in your IF statement.
Bookmarks