php-general | 2001122
Date: 12/20/01
- Next message: Svensson, B.A.T. (HKG): "[PHP] RE: [PHP-WIN] Passing Logined in Name form One Form to other Page"
- Previous message: Jack: "[PHP] Passing Logined in Name form One Form to other Page"
- In reply to: Jack: "[PHP] Passing Logined in Name form One Form to other Page"
- Next in thread: Mehmet Kamil ERISEN: "Re: [PHP] Passing Logined in Name form One Form to other Page"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
login.php
<?php
$user_name = $HTTP_GET_VARS['login];
session_start();
session_register("user_name");
?>
other.php
<?php
session_start();
if (!session_is_registered("user_name")) header("Location : login.php");
// use here $HTTP_SESSION_VARS['user_name'], if 4.1.0 then $_SESSION['user_name'] is also avaiable and preferable.
?>
Regards,
Andrey Hristov
----- Original Message -----
From: "Jack" <nedcor4 <email protected>>
To: <php-db <email protected>>; <php-general <email protected>>; <php-windows <email protected>>
Sent: Thursday, December 20, 2001 9:30 AM
Subject: [PHP] Passing Logined in Name form One Form to other Page
> Dear all
> I had create the Login Page for the User to login before they can open the
> WebPage. What i want to do is to:
>
> When the User had type the Username into the Inputbox, and click the submit
> button, this Username will be memorized, and pass to other PHP Page.Then
> when he go to some page which need to select data from MYSQL, it will read
> the Username which passed from the Login Form and select the only Record to
> him!
>
> I heard about the Session, but how i can pass the Username to other page
> using Session??
>
> Pls Help!
>
> Thx a lot !
> jack
> jack <email protected>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe <email protected>
> For additional commands, e-mail: php-general-help <email protected>
> To contact the list administrators, e-mail: php-list-admin <email protected>
>
>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Svensson, B.A.T. (HKG): "[PHP] RE: [PHP-WIN] Passing Logined in Name form One Form to other Page"
- Previous message: Jack: "[PHP] Passing Logined in Name form One Form to other Page"
- In reply to: Jack: "[PHP] Passing Logined in Name form One Form to other Page"
- Next in thread: Mehmet Kamil ERISEN: "Re: [PHP] Passing Logined in Name form One Form to other Page"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

