Tuesday, September 16, 2008

Re: [php-objects] Login page

So you have a table at the moment that stores the name and type of user. Good, depending upon the type you can give the page .
For eg : if( $type == 'type1' ) {
header('Location: http://www.example.com/pageA.php');
} else {
header('Location: http://www.example.com/pageB.php');
}
You can create this in certain include if necessary . Or make in a switch that checks whether the page is accesible.
Its all upto you ... And your ideas...


Warm regards,
    Hari K T
    Calicut
    KERALA.
    +91-9895-195901

    http://www.harikt.co.nr/
    http://www.ijust4u.blogspot.com/
    http://www.phphelps.freezoka.com/

--- On Tue, 16/9/08, Vishal Subandh <vishal.subandh@gmail.com> wrote:

> From: Vishal Subandh <vishal.subandh@gmail.com>
> Subject: [php-objects] Login page
> To: php-objects@yahoogroups.com
> Date: Tuesday, 16 September, 2008, 12:58 PM
> Hi folks,
>
> I am looking to create a login page. I have created 2 pages
> in php and hence
> defined two sets of users. I would like users 1,2 and 3 to
> access page A and
> 4,5 and 6 to access page B after signing in. How can I do
> this. I have one
> table at the moment that stores the name and type of user.
>
> I would even like to check for user validation!
>
> Kind regards,
>
> Vishal
>
>
> [Non-text portions of this message have been removed]


Unlimited freedom, unlimited storage. Get it now, on http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/

------------------------------------

Are you looking for a PHP job? Join the PHP Professionals directory Now!
http://www.phpclasses.org/professionals/Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/php-objects/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/php-objects/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:php-objects-digest@yahoogroups.com
mailto:php-objects-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
php-objects-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/

No comments: