By the way.. thanks for all your help...
i tried something like what you said:-
$query = "SELECT id from studs where id = '$_POST[id]'";
echo $query;
$mysql_result = mysql_query($query);
$num_rows = mysql_num_rows($mysql_result);
if($num_rows == 0)
{
echo "Failed. Student Number is Invalid. Please try again.";
}
else
{
echo "CONGRATS!!! 🙂";
$father = "INSERT into father (id, forename, surname, addL1, addL2, postalCode, county, hNo, wNo, mobile, occup, employer) values ('$POST[id]', '$POST[forename]', '$POST[surname]', '$POST[addL1]', '$POST[addL2]', '$POST[postalCode]', '$POST[county]', '$POST[hNo]', '$POST[wNo]', '$POST[mobile]', '$POST[occup]', '$POST[employer]';
mysql_query($father);
}
?>
its not working... i get the following error:-
Parse error: parse error in c:\phpdev\www\4thyrproj\addingf.php on line 34
Line 34 being the last line in the program???!!
Any ideas or hav i totally messed it up???