I am trying to understand the new version of php and I am not having any luck. Why doesn't this work.
page ONE:
<FORM ACTION="test.php" METHOD="POST" NAME="TEST">
<input type="text name="test">
<input type="submit" value="test">
</form>
page TWO:
<?php
//Adding New Course Inforamtion
$which_db="beachbreeders";
if(!$link = mysql_connect("localhost", "test", "test"))
die("No Connect to DB");
if(!mysql_select_db($which_db,$link))
die("No Select DB");
$query = "INSERT into tblBreeder (Name) VALUES (\"$test\")";
$result = mysql_query($query,$link);
?>
Any help would be appreciated.
Thanks in advance