echo "Registeration is closed please check again later."; exit; if( $HTTP_POST_VARS['submit'] ){ $firstname = $_POST['firstname']; $lastname = $_POST['lastname']; $email = $_POST['email']; $company = $_POST['company']; $username = $_POST['username']; $pass =md5($_POST['pass']); $DB = $_POST['DB']; $key = $_POST['Key']; $grp="all"; $sqlusr="nemamex"; $sqlpas="globodera2"; $sqltbl="NemaAuth"; mysql_connect("vhostdb.ucr.edu",$sqlusr,$sqlpas); @mysql_select_db($sqlusr) or die("Unable to register user."); $username=strtolower($username); $qry="INSERT INTO $sqltbl VALUES('$username','$pass','$grp','$firstname','$lastname','$company','$email')"; mysql_query($qry); mysql_close(); header("Location: http://www.nemamex.ucr.edu/header.html"); } ?>