Hi, I wrote a script to add to a database via a form but when I load it, all I get is a parse error on line 25. Here's my code:
<head>
</head>
<body>
<form action="test1.php" method="POST">
Name: <input type="text" name="Name"><br>
Age: <input type="text" name="Age" maxlength="2"><br>
Location: <input type="text" name="Location"><br>
Email: <input type="text" name="Email"><br>
<input type="Submit" value="Add" name="Submit">
</form>
<?
$Connect = odbc_connect("News", "NC", "TEST");
$Query = "INSERT INTO Test(Name, Age, Location, Email) VALUES ($Name, $Age, $Location, $Email)";
if(!(odbc_exec($Connect, $Query)))
{
print(Info could not be added to database);
}
?>
</body>
What's wrong with it? Thanks to anyone in advance