Hi, okay the problem isin't with the database, I just found out. It's with forms and PHP it seems.
For some reason it doesn't seem to pass variables well.
**Code submitform.html***
<html><body>
<form action=submitform.php method=GET>
First Name: <input type=text name=first_name size=25 maxlength=25>
Last Name: <input type=text name=last_name size=25 maxlength=25>
<p>
<input type=submit>
</form></body></html>
***Code for submitform.php*
<html>
<body>
<?php
mysql_connect (localhost, username, password);
mysql_select_db (dbname);
mysql_query ("INSERT INTO tablename (first_name, last_name)
VALUES ('$first_name', '$last_name')
");
print ($first_name);
print (" ");
print ($last_name);
print ("<p>");
print ("Thanks for submitting your name.");
?>
</body>
</html>
Now, what happens is that a line gets inserted into the DB but it's values are blank.. so, I tried changin $first_name to blah then it inserted blah into the db..
Thanks for help
