Hi Guy Could some one please help me with the error I keep getting when I try to test this php script please! I created this script some time ago at uni for an assignment, I thought I got it working but maybe not? I want to create a simple validation script that looks up a simple flat text file for username and password. I have attached the three files these being the logon form, the validation script and the lookup text file. Parse error: syntax error, unexpected $end in C:\xampp\htdocs\student_logon.php on line 39 Cheers Mark
you have to close this: if(preg_match("/$student_name/", $student_name)&&(preg_match("/$student_id/", $student_id))) { //start of IF, for preg_match function