Help needed with my code (Function)
Posted: Fri Sep 25, 2009 10:21 am
Hello,
I have no idea why this is not working. I read some tutorials and all seems to point in the direction that, this code should work.
The error that I am getting
Fatal error: Call to undefined function: checkstudentaccount()
Any help will be greatly appreciated, thank you.
I have no idea why this is not working. I read some tutorials and all seems to point in the direction that, this code should work.
Code: Select all
if(ISSET($_REQUEST['submit'])){
// Get username and password from the form
$email = trim($_REQUEST['email']);
$password = md5(trim($_REQUEST['password']));
$author = $_REQUEST['checkbox'];
// When the user is student
if($author == null){
checkStudentAccount($email,$password);
}
// Not yet implemented
if($author == 'teacher'){
print "Teacher";
die();
}
function checkStudentAccount($email,$password){
...
}
Fatal error: Call to undefined function: checkstudentaccount()
Any help will be greatly appreciated, thank you.