Hi You have two functions between the if and else, the syntax you've used only allows one. Use braces. if(mysql_query($sql)) { mail ($email, "Thank you for registering!", $body, "From: Malls@xxxxxxxxxxxxxxxxxxxxxxxx"); header("Location: thankYou.php"); } else { die("Error! Could not insert values".mysql_error()); } Niel -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php