php-windows Digest 30 Jul 2002 14:09:55 -0000 Issue 1265

Topics (messages 15005 through 15010):

End session
        15005 by: Kit Kerbel
        15006 by: Peter
        15009 by: Rich Gray

cant store checkbox vale ..... ?????
        15007 by: toby z
        15008 by: Peter

Looking for some help with using CDO with PHP
        15010 by: R.S. Herhuth

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
I would like to know how to end a session, so, when the user hits logoff, 
the user session is killed and if you user clicks a link that requires 
he/she to be logged in, it will not have the session data stored still.  
FYI, i am using the current syntax for sessions, $_SESSION['whatever']


_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com

--- End Message ---
--- Begin Message ---
kit ,

1st off have a look in the manual it will have it all there...

2nd  normally a session will end when the user closes the browser..


> -----Original Message-----
> From: Kit Kerbel [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, 30 July 2002 12:11 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] End session
>
>
> I would like to know how to end a session, so, when the user hits logoff,
> the user session is killed and if you user clicks a link that requires
> he/she to be logged in, it will not have the session data stored still.
> FYI, i am using the current syntax for sessions, $_SESSION['whatever']
>
>
> _________________________________________________________________
> Send and receive Hotmail on your mobile device: http://mobile.msn.com
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---
--- Begin Message ---
How about...

session_unset();
session_destroy();
header('Location: <blah blah>'); // Send user back to home page
exit;

The above should initialise the $_SESSION array and blow away the session
data.

HTH
Rich
-----Original Message-----
From: Kit Kerbel [mailto:[EMAIL PROTECTED]]
Sent: 30 July 2002 03:11
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] End session


I would like to know how to end a session, so, when the user hits logoff,
the user session is killed and if you user clicks a link that requires
he/she to be logged in, it will not have the session data stored still.
FYI, i am using the current syntax for sessions, $_SESSION['whatever']


_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com


--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---

hi guys

im stuck with check boxes now 

n id b really gratefull if anyone d help plx ....

the thing is i cnt get the cheked value from a
checkbox


<input type=checkbox name=news_letter_subs >sign me up
fo weekly news letter and updates</input>



the processing  for this is:

$isql = "insert into usr_inf (email, firstName,
lastName, news_letter_subs) " .

"values ('" . $email . "', '" . $firstName . "', '" .
$lastName . "','" . $news_letter_subs ." ') ";




after a million checks on the passed data all the
fileds get stored in my db

except fo news_letter_subs

i get a 0 fo it in my db :S



where m i mucking it up

guyz plz hlp ....

thnx a million....

toby .....

__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com
--- End Message ---
--- Begin Message ---
> 
> 
> hi guys
> 
> im stuck with check boxes now 
> 
> n id b really gratefull if anyone d help plx ....
> 
> the thing is i cnt get the cheked value from a
> checkbox
> 
> 
> <input type=checkbox name=news_letter_subs >sign me up
> fo weekly news letter and updates</input>
> 
try this

<input type=checkbox name=news_letter_subs value=yes>sign me up
> fo weekly news letter and updates</input>

or what ever value you have the checked box to equal
--- End Message ---
--- Begin Message ---

Does anyone have any experience in working with CDO objects in PHP?

Ron
--- End Message ---

Reply via email to