Jump to content

[SOLVED] help.. call to underfind function :S


runnerjp

Recommended Posts

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>&nbsp;</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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.