Re: [PHP-DB] User authentication and redirect

2005-07-15 Thread Thomas Dodson
From: "Vinny Lape" <[EMAIL PROTECTED]> To: Subject: RE: [PHP-DB] User authentication and redirect Date: Fri, 15 Jul 2005 09:01:52 -0400 I think I need to explain my question better. I have a db and the table contains 4 fields uid(pk) username password location I can authentic

RE: [PHP-DB] User authentication and redirect

2005-07-15 Thread Bastien Koert
.= "?" . $QUERY_STRING; $MM_restrictGoTo = $MM_restrictGoTo. $MM_qsChar . "accesscheck=" . urlencode($MM_referrer); header("Location: ". $MM_restrictGoTo); exit; } ?> -Original Message----- From: Ahmed Saad [mailto:[EMAIL PROTECTED] Sent: Thursday, July 14, 2005

RE: [PHP-DB] User authentication and redirect

2005-07-15 Thread Vinny Lape
header("Location: ". $MM_restrictGoTo); exit; } ?> -Original Message- From: Ahmed Saad [mailto:[EMAIL PROTECTED] Sent: Thursday, July 14, 2005 8:34 AM To: Vinny Lape Cc: php-db@lists.php.net Subject: Re: [PHP-DB] User authentication and redirect hi Vinny, On 7

Re: [PHP-DB] User authentication and redirect

2005-07-14 Thread Thomas Dodson
Ahmed Saad wrote: hi Vinny, On 7/13/05, Vinny Lape <[EMAIL PROTECTED]> wrote: If user validates then look at db entry location then redirect to mydomain.com/"location"/index.php i don't think it's a good idea. what if the user bookmarked or took down a notice with the URL to your "se

Re: [PHP-DB] User authentication and redirect

2005-07-14 Thread Ahmed Saad
hi Vinny, On 7/13/05, Vinny Lape <[EMAIL PROTECTED]> wrote: > If user validates then look at db entry location then redirect to > mydomain.com/"location"/index.php i don't think it's a good idea. what if the user bookmarked or took down a notice with the URL to your "secured" page (mydomain.com/l

Re: [PHP-DB] User authentication and redirect

2005-07-13 Thread Alain Rivest
Vinny Lape a écrit : I am trying to make a login script that will check a mysql db for usernme, password and location. If user validates then look at db entry location then redirect to mydomain.com/"location"/index.php Anyone have an idea about this? header("Location: /somewhere/index.php"

Re: [PHP-DB] User authentication and redirect

2005-07-13 Thread Micah Stevens
if (authorized($user)) { header("Location: http://mydomain.com/$user/index.php";); } On Wednesday 13 July 2005 1:13 pm, Vinny Lape wrote: > I am trying to make a login script that will check a mysql db for usernme, > password and location. > If user validates then look at db entry loca