Re: Re: Passing Logined in Name form One Form to other Page
| From: | George Nicolae | Date: | Thu, 20 Dec 2001 10:13:24 +0000 |
| Subject: | Re: Re: Passing Logined in Name form One Form to other Page | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-11035@lists.php.net to get a copy of this message | ||
this is also a very good idea. I will use it in the future.
--
Best regards,
George Nicolae
IT Manager
___________________
X-Playin - Professional Web Design
www.x-playin.f2s.com
"Pac Mon" <cake27@hotmail.com> wrote in message
news:F2288j0pBRbijiWZeVl00002a20@hotmail.com...
> HAHAHAHA...ok... sorry. First off.. RTFM guyz. Because it's obivious the
> manual hasn't been read I'm not going into great detail, but look up these
> functions I mention.
>
> Secondly. No need. Sessions automatically take care of cookies.
>
> session_register("thevariable");
>
> tada.. every page will have a variable: $thevariable and it's value will
be
> constant until
>
> session_destroy();
>
> http://www.php.net/manual/en/ref.session.php
>
> >
> >you can use cookies.
> >setcookie ("user", $value);
> >setcookie ("psw", $value);
> >//look in manual for more details
> >
> >u can set the cookie only the login and psw are corect
> >and then in "some page" you do the follow:
> >if (isset($user)&&isset($psw)) .../*verify again if are corect and
"select
> >the only Record to him!"
> >
> >
> >
> >
> >
> >Best regards,
> >George Nicolae
> >IT Manager
> >___________________
> >X-Playin - Professional Web Design
> >www.x-playin.f2s.com
> >
> >
> >
> >"Jack" <nedcor4@nedcor.com.hk> wrote in message
> >news:20011220073529.92658.qmail@pb1.pair.com...
> > > 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@nedcor.com
> > >
> > >
> >
> >
> >
> >--
> >PHP Windows Mailing List (http://www.php.net/)
> >To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
> >For additional commands, e-mail: php-windows-help@lists.php.net
> >To contact the list administrators, e-mail: php-list-admin@lists.php.net
> >
>
>
> _________________________________________________________________
> MSN Photos is the easiest way to share and print your photos:
> http://photos.msn.com/support/worldwide.aspx
>