Hi !!!! I have this code to authenticate my user, looking in mysql database and i don\'t know whats happing because him goto always to the error page !!!!!!!!!!
<?php
require \'functions.php\';
if(authenticateUser($form_user_id, $form_password))
{
setcookie(\"cookie_passwd\", $form_password);
setcookie(\"cookie_user\", $form_user_id);
header(\"Location:http://$HTTP_HOST/$DOCROOT/menu.html\");
exit();
} else {
header(\"Location:http://$HTTP_HOST/$DOCROOT/erro/erro_1.php\");
exit();
}
?>
I\'m so sorry my english. tanks