Date: 11/01/99
- Next message: Michael Graham: "Re: [PHPLIB-DEV] Form problem"
- Previous message: kir: "[PHPLIB-DEV] cvs commit"
- Next in thread: Michael Graham: "Re: [PHPLIB-DEV] Form problem"
- Reply: Michael Graham: "Re: [PHPLIB-DEV] Form problem"
- Reply: Kristian Koehntopp: "Re: [PHPLIB-DEV] Form problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
hi,
I want to offer one more function for class Session which should be
used in
the following situation:
1. We have a FORM on a page which uses "GET" method.
2. We're want to be sure that it will work with session variables even
if
user have cookies off.
The solution is simple - pass session_name as additional variable of
form.
Why can't we offer a function which will insert appropriate
<INPUT> hidden field iside the form ?
We use such a function in our work - it seems to be useful:
//---------------------------------------------------------------------------
// Class Session
//Function for adding hidden field with session ID in form
//if cookies off
function hidden_id()
{
switch ($this->mode)
{
case "get":
echo "<INPUT TYPE=\"HIDDEN\" NAME=\"" . $this->name .
"\" VALUE=\"" . $this->id. "\">";
}
}
Regards,
KIR
-- ----- ----- ----- ----- ----- ----- ----- ----- Kirill Maximov; maximov <email protected> ICQ: 14796643 Chief of Software Development Department, Astrive, Inc.- PHPLIB Developers Mailing List. Send messages to <phplib-dev <email protected>>. To unsubscribe, send "unsubscribe" to <phplib-dev-request <email protected>> in the body, not the subject, of your message.
- Next message: Michael Graham: "Re: [PHPLIB-DEV] Form problem"
- Previous message: kir: "[PHPLIB-DEV] cvs commit"
- Next in thread: Michael Graham: "Re: [PHPLIB-DEV] Form problem"
- Reply: Michael Graham: "Re: [PHPLIB-DEV] Form problem"
- Reply: Kristian Koehntopp: "Re: [PHPLIB-DEV] Form problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

