This is how i get around it.

On the form page:

<input type="checkbox" name="SUBSCRIBE" value="YES" checked>


On the submission page:

if (empty($SUBSCRIBE)) { 
$SUBSCRIBE = "NO";
}

hth,
quinn merio
www.vr2a.com




-----Original Message-----
From: John Monfort [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 19, 2001 6:20 AM
To: Jason Murray
Cc: 'Tom Beidler'; [EMAIL PROTECTED]
Subject: RE: [PHP] HTTP_POST_VARS not picking up checkboxes that are
unche cked




   I had some issues with that recently. It turns out that PHP will not
   pick up the checkboxes, unless you use the GET method.

   You can then access your vars with HTTP_GET_VARS.

   This was discovered on
    WIN98+ PHP 4.03pl1 + Apache 1.3++
     &
    WIN ME + PHP 4.03pl1 + Apache 1.3++

   If someone had a different experience, then I would like to hear about
   it. Please share.

__________John Monfort_________________
_+-----------------------------------+_
     P E P I E  D E S I G N S
       www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___________________________________+-

On Tue, 19 Jun 2001, Jason Murray wrote:

> > Subject: [PHP] HTTP_POST_VARS not picking up checkboxes that are
unchecked
>
> That's right - if the checkbox isn't checked the browser doesn't send it.
>
> Jason
>

Reply via email to