I'm not new to programming, but this is driving me nuts, I know I'm missing a basic something somewhere...
I have a simple form sent to this php script to process...
$name = $_POST['fname'];
$age = $_POST['lname'];
$gender = $_POST['phon'];
$country = $_POST['comment'];
$host=”mydbserver”;
$user_name=”myusername”;
$pwd=”mypassword”;
$database_name=”mydb”;
$db=mysql_connect($host, $user_name, $pwd);
if (mysql_error() > “”) print mysql_error() . “<br>”;
mysql_select_db($database_name, $db);
if (mysql_error() > “”) print mysql_error() . “<br>”;
$query = “insert into mytest (fname, lname, phon, comments) values (.$name.,.$age.,.$gender.,.$country.)”;
$qresult = mysql_query($query);
You can see what happens live at http://lema.holisticschool.com/testing/form.html, you fill in the form, and click register, and it takes you to a blank screen, which would be all fine and dandy if it wrote to the database like it's supposed to... No error messages (made it past the login errors and everything else) now just get nothing... Not even a write to the DB... Any help would be amazing! Thanks in advance!
Osyrys