hi rui
1st of all y do u want to clean up user data collected ????
:S
2nd if u only want to authentify a user (logged into ur system/site)
try this :
// session check ! ! ! !
session_start();
if(!session_is_registered("name-of-session-u-registered-for-user" ))
{
header("Location: /root/error-file-name.php");
exit();
}
hope i ve helped
good luck
toby ......
--- Rui <[EMAIL PROTECTED]> wrote: > I'm trying to make a page
that requires an authentification by the
> user.
>
> A lot of problems appear when I run a script copied from the
> "O'Reilly : Web
> Database Applications".
>
> One of them is the function :clean: that doesn't exist, according
> with the
> php compiler:
>
> session_start();
>
> $authenticated = false;
>
> // Clean the data collected from the user
> $appUsername =
> clean($HTTP_POST_VARS["formUsername"], 10);
> $appPassword =
> clean($HTTP_POST_VARS["formPassword"], 15);
>
> Can someone tell me what is the prob? Where can I get information
> for this
> kind of script?
>
> Thanks.
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php