runnerjp Posted January 31, 2007 Share Posted January 31, 2007 i have a login script that goes [code]<? include("require/config.php");require("require/membership.php");$content="include/loginbox.inc.php";$menu="include/menu_u.inc.php";$page_title="Login Form";if ($HTTP_POST_VARS) { if ($login && $password) { $password=crypt($password, $login); $data=authenticate($login, $password); if ($data[error]) {$error=$data[error];} else { setcookie("ProfileDev","$login&&$password", 0, "/"); if (!$ref) {$ref="index.php";} Header("Location: redirect.php?ref=$ref"); } } else {$error="901";}}error_message($error);include("include/header.inc.php");include("include/body.inc.php");include("include/footer.inc.php");?>[/code]my login box[code]<form action="login.php" method="POST"><table align="center" cellpadding="4" cellspacing="0" class="login_tbl"> <tr> <td class="login_cell"> <p>Username</p> </td> <td class="login_cell"> <p><input type="text" name="login" maxlength="20" size="10" style="font-family:Arial,sans-serif; font-size:9pt;"></p> </td> </tr> <tr> <td class="login_cell"> <p>Password</p> </td> <td class="login_cell"> <p><input type="password" name="password" maxlength="20" size="10" style="font-family:Arial,sans-serif; font-size:9pt;"></p> </td> </tr> <tr> <td class="login_cell"> <p> </p> </td> <td class="login_cell"> <p><input type="submit" value="Login!" style="font-family:Arial,sans-serif; font-size:9pt;"></p> </td> </tr></table></form>[/code]i keep getitng the error [quote]Fatal error: Call to undefined function: authenticate() in /home/runnerse/public_html/login.php on line 13[/quote] Link to comment https://forums.phpfreaks.com/topic/36476-solved-help-call-to-underfind-function-s/ Share on other sites More sharing options...
trq Posted January 31, 2007 Share Posted January 31, 2007 Where do you define the authenticate() function? Link to comment https://forums.phpfreaks.com/topic/36476-solved-help-call-to-underfind-function-s/#findComment-173619 Share on other sites More sharing options...
runnerjp Posted January 31, 2007 Author Share Posted January 31, 2007 its ok figured it out :D:D ty Link to comment https://forums.phpfreaks.com/topic/36476-solved-help-call-to-underfind-function-s/#findComment-173632 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.