thanks for that... that was one error.. very silly!
only problem now is that it seems to go to the database but isn't printing the data to the database .. just leaving blank rows...
i don't tink im calling the variable right..
my code for the form is
<form method="post" action="adding.php">
<td>Enter Student Forename:</td>
<td><input type="text" size=15
maxlength=30
name=<"forename"></td>
</tr>
<tr><td>Enter Student Surname:</td>
<td><input type="password" size=15
maxlength=8
name="surname"></td>
</tr>
<tr>
<td><input type="submit" value="Log in"></td>
and then the insert to the database:-
$student = "INSERT into students (forename, surname) values ('$forename', '$surname')";
mysql_query($student);
Any suggestions would be appreciated..
thanks
susi