Re: [PHP] Checkbox in PHP form

2009-11-10 Thread Adam Randall
value="PFDs" name="f_sequipment1">PFDs Or with short tags: value="PFDs" name="f_sequipment1">PFDs Adam. On Sun, Nov 8, 2009 at 5:39 PM, Ernie Kemp wrote: > Need some help here with checkboxes in an html form. > > > > My issue is I have a form that needs to be viewed with checkboxes filled i

Re: [PHP] checkbox unchecked

2007-12-02 Thread tedd
At 1:23 PM -0800 12/2/07, Casey wrote: On Dec 2, 2007 1:08 PM, tedd <[EMAIL PROTECTED]> wrote: You don't need to do anything. When it's submitted: That's true unless you're pulling data in from somewhere else (i.e., a dB). Cheers, tedd -- --- http://sperling.com http://ancientstones.c

Re: [PHP] checkbox unchecked

2007-12-02 Thread Casey
On Dec 2, 2007 1:08 PM, tedd <[EMAIL PROTECTED]> wrote: > At 12:36 PM -0600 12/2/07, Larry Garfield wrote: > >First of all, using "y" and "n" for boolean values (such as a checkbox) is > >very sloppy. "n" is boolean True. A boolean value should evaluate correctly > >in a boolean context. For tha

Re: [PHP] checkbox unchecked

2007-12-02 Thread tedd
At 12:36 PM -0600 12/2/07, Larry Garfield wrote: First of all, using "y" and "n" for boolean values (such as a checkbox) is very sloppy. "n" is boolean True. A boolean value should evaluate correctly in a boolean context. For that, you should use 1 and 0 for your values. What I usually do i

Re: [PHP] checkbox unchecked

2007-12-02 Thread Jürgen Wind
nice! but to avoid confusion it should read (assuming that $checked is a boolean variable): /> IMHO Larry Garfield wrote: > > First of all, using "y" and "n" for boolean values (such as a checkbox) is > very sloppy. "n" is boolean True. A boolean value should evaluate > correctly > in a b

Re: [PHP] checkbox unchecked

2007-12-02 Thread Steve Edberg
Just to add my two cents - I don't think it matters much what tokens you use to represent true or false, since you're going to be explicitly checking them on the server end anyway. I can't see much difference in principle between, for example: if ($_GET['foo'] == 'y')... and

Re: [PHP] checkbox unchecked

2007-12-02 Thread Larry Garfield
First of all, using "y" and "n" for boolean values (such as a checkbox) is very sloppy. "n" is boolean True. A boolean value should evaluate correctly in a boolean context. For that, you should use 1 and 0 for your values. What I usually do is this: /> Then when it gets submitted, foo w

Re: [PHP] checkbox unchecked

2007-12-02 Thread Ronald Wiplinger
Stephen wrote: > Ronald Wiplinger wrote: >> How can I force a "n" for not checked in the input field? or how can I >> solve that? >> > Either use radio buttons or a drop down for the input field. Thanks! > > Stephen > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] checkbox unchecked

2007-12-02 Thread Afan Pasalic
I did once, if I remember once, this "strategy": > If checked, you will have value "y". Though, if unchecked, or it was checked and visitor unchecked, the value should be "n". ;) -afan Ronald Wiplinger wrote: I have now tried to add many of the security hints on a web page and come to a pr

Re: [PHP] checkbox unchecked

2007-12-02 Thread Stephen
Ronald Wiplinger wrote: How can I force a "n" for not checked in the input field? or how can I solve that? Either use radio buttons or a drop down for the input field. Stephen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Checkbox & Hidden Field to Delete Row - SOLVED

2006-06-01 Thread Rahul S. Johari
Ray, Interestingly, I don't' allow special characters in File Names for files being uploaded to the File Manager. So that problem won't occur. Thanks. On 6/1/06 4:23 PM, "Ray Hauge" <[EMAIL PROTECTED]> wrote: > On Thursday 01 June 2006 13:15, Rahul S. Johari wrote: > > Tad different, but that

Re: [PHP] Checkbox & Hidden Field to Delete Row - SOLVED

2006-06-01 Thread Ray Hauge
On Thursday 01 June 2006 13:15, Rahul S. Johari wrote: > Ave, > > I spent 3 hours trying to find or develop a solution for this problem... > And believe it or not, within 3 minutes of sending the problem to the > mailing list, I actually generated a solution!! Ray, you’re spot on with > what’s actu

Re: [PHP] Checkbox & Hidden Field to Delete Row - SOLVED

2006-06-01 Thread Rahul S. Johari
Ave, I spent 3 hours trying to find or develop a solution for this problem... And believe it or not, within 3 minutes of sending the problem to the mailing list, I actually generated a solution!! Ray, you’re spot on with what’s actually happening, but this is what I did to resolve it... Here’s m

Re: [PHP] Checkbox & Hidden Field to Delete Row

2006-06-01 Thread Ray Hauge
On Thursday 01 June 2006 12:58, Rahul S. Johari wrote: > Ave, > > I¹m stuck on a problem here. > I have a file manager kind of application and I¹m trying to add the > functionality to delete multiple files. > > Basically, there¹s a bunch of rows generated dynamically. Each row has a > checkbox for

Re: [PHP] checkbox value

2005-03-24 Thread [EMAIL PROTECTED]
# index.php > -afan William Stokes wrote: Hello, I have a checkbox in a form. How can I determine if the user has set the checkbox on or not? Thanks -Will -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] checkbox value

2005-03-24 Thread Ken
isset($_POST['checkboxname']) or isset($_GET['checkboxname']) depending on the method of your form. a good thing to do is to do var_dump($_POST) or var_dump($_GET) to see all the values posted from the form... hth ken On Thu, 24 Mar 2005 15:42:10 +0200, William Stokes <[EMAIL PROTECTED]> wrote:

RE: [PHP] checkbox arrays and validation

2004-10-05 Thread Angelo Zanetti
thanks Mike, worked like a charm!! and thanks to the others who replied! >>> "Ford, Mike" <[EMAIL PROTECTED]> 10/5/2004 3:09:32 PM >>> On 05 October 2004 13:55, Angelo Zanetti wrote: > Hi Marek, > > I try to access the array like this: > > document.frmft.elements["chkmodels[]"]; > > but

RE: [PHP] checkbox arrays and validation

2004-10-05 Thread Ford, Mike
On 05 October 2004 13:55, Angelo Zanetti wrote: > Hi Marek, > > I try to access the array like this: > > document.frmft.elements["chkmodels[]"]; > > but doesnt work. I also tried this: > > models = document.forms['frmft'].elements["chkmodels[]"]; > > is there not a problem with the elements

Re: [PHP] checkbox arrays and validation

2004-10-05 Thread Angelo Zanetti
Hi Marek, I try to access the array like this: document.frmft.elements["chkmodels[]"]; but doesnt work. I also tried this: models = document.forms['frmft'].elements["chkmodels[]"]; is there not a problem with the elements part? thanks >>> Marek Kilimajer <[EMAIL PROTECTED]> 10/5/2004 2:19

Re: [PHP] checkbox arrays and validation

2004-10-05 Thread Marek Kilimajer
Angelo Zanetti wrote: its the only form on the page... Based on the other responses I will have to use chkmodels[] and need to get the javascript working. Is it not possible to use the forms name when referencing the array? You should be able to use: document.formName document.forms[0] document.for

Re: [PHP] checkbox arrays and validation

2004-10-05 Thread Angelo Zanetti
its the only form on the page... Based on the other responses I will have to use chkmodels[] and need to get the javascript working. Is it not possible to use the forms name when referencing the array? thank again. Angelo >>> Marek Kilimajer <[EMAIL PROTECTED]> 10/5/2004 1:52:02 PM >>> Angelo Za

Re: [PHP] checkbox arrays and validation

2004-10-05 Thread Marek Kilimajer
Angelo Zanetti wrote: Here is the OT part. how do I reference the checkboxes in javascript if the chkmodels[] is used? I have tried many things like: myCheckboxArray = document.forms[0].elements["chkmodels[]"]; The above should work. Is it really the first form on the page? -- PHP General Mailing L

Re: [PHP] checkbox arrays and validation

2004-10-05 Thread John Holmes
Angelo Zanetti wrote: but what I want to clarify is that if I change my PHP echo statement to: echo("" . $row['models_type'] . ""); basically without the [] then it is still recognised as an array. But when the array is passed back it is returned as a string separated by commas. Then I should use t

RE: [PHP] checkbox arrays and validation

2004-10-05 Thread Ford, Mike
On 05 October 2004 11:10, Angelo Zanetti wrote: > Hi all, > > this might be slightly off-topic in a way but Im looking for help not > flaming. > > Ok I have a checkbox array that I populate from a DB using php: > > while ($row = mysql_fetch_array($result)) > echo("" . $row['models_type']

Re: [PHP] Checkbox Question

2004-09-02 Thread Curt Zirzow
* Thus wrote Nick Wilson: > Hi all, > > Im using php's cURL module to submit a form on a remote site. All is > *good* so far but i dont know what parameter to pass to ensure that > this checkbox is 'checked': > > TIAS. a=http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.p

Re: [PHP] Checkbox Question

2004-09-02 Thread M. Sokolewicz
Stephan Fiedler wrote: Hi Nick, Nick Wilson wrote: Hi all, [...] so, what is it? a= [...] if a was checked "a=on" is posted (or 'get'ed) if not checked a isn't set. Thanks very much! You're welcome Stephan that actually depends on the browser. Mayne browsers send a= when it's not checked (meani

Re: [PHP] Checkbox Question

2004-09-02 Thread Stephan Fiedler
Hi Nick, Nick Wilson wrote: Hi all, [...] so, what is it? a= [...] if a was checked "a=on" is posted (or 'get'ed) if not checked a isn't set. Thanks very much! You're welcome Stephan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] checkbox

2004-06-30 Thread abrea
If you put square brackets after the name (e.g. var[]) your form should produce an array called $_POST["var"] that comprises the checked boxes only. e.g. Regards Alberto Brea [EMAIL PROTECTED] -Original Message- From: "Aris Santillan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Da

Re: [PHP] checkbox

2004-06-30 Thread Justin Patrin
Try foreach ($_POST['textfield'] as $num => $value); On Wed, 30 Jun 2004 15:56:35 +0800, Aris Santillan <[EMAIL PROTECTED]> wrote: > > how can process only items with checked check-box? > > --- html --- > > > > Untitled Document > > > > > > > > >

Re: [PHP] checkbox: was it shown or not?

2003-07-17 Thread Leif K-Brooks
Chris Hayes (SENSE) wrote: if i understand well, a checkbox in a form is only send on to the next page when it is checked: so the next page will only see a value in $_POST['checkboxname'] if it is set: else it is not set. Right? So the followup page cannot see the difference between a form wher

Re: [PHP] checkbox: was it shown or not?

2003-07-17 Thread Chris Hayes (SENSE)
At 19:16 17-7-03, you wrote: you understand it correctly ok so i really have to add another kludgy workaround to my form class :/ but thanks for confirming! Chris - Original Message - From: "Chris Hayes (SENSE)" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, July 17, 2003 9

Re: [PHP] Checkbox

2003-03-28 Thread SLanger
Hello >From a usability standpoint showing a checkbox that cannot be unchecked renders the checkbox obsolete. The consquence is not to show a checkbox at all. If you need an uncheckable checkbox because of licence aggreements or something like that. Or privacydeclaration type checkbox. Make it

Re: [PHP] Checkbox

2003-03-27 Thread Gudmund Vatn
PROTECTED]>; "shaun" > <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Wednesday, March 26, 2003 2:26 PM > Subject: Re: [PHP] Checkbox > On Wednesday 26 March 2003 02:11 pm, CPT John W. Holmes wrote: > > >On Wednesday 26 March 2003 01:43 pm, CPT

Re: [PHP] Checkbox

2003-03-27 Thread Jason Wong
On Thursday 27 March 2003 03:26, Reuben D. Budiardja wrote: > But isn't it so much easier to type in that one line HTML + javascript than > trying to get an image of a checked check box.. unless you have that > handy, you'd have to eg. take a snapshot, or draw something, then save the > file a

RE: [PHP] Checkbox

2003-03-26 Thread Kalin Mintchev
hello, how can i get the output file from the curl function to stream - to be processed like from fopen or fsockopen? thanks... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Checkbox

2003-03-26 Thread David Pearson
unchecking the box. Only the DISABLED flag does. Readonly apparently prevents the user from altering the value of the input field. -Original Message- From: Tim Burden [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 26, 2003 11:25 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Checkbox Just

Re: [PHP] Checkbox

2003-03-26 Thread CPT John W. Holmes
> But isn't it so much easier to type in that one line HTML + javascript than > trying to get an image of a checked check box.. unless you have that > handy, you'd have to eg. take a snapshot, or draw something, then save the > file as an image file...hmm... > > and as you said, the effect

RE: [PHP] Checkbox

2003-03-26 Thread Sysadmin
I agree...and like John said, as long as you don't accept any changes when you process the form you should be good to go... -Original Message- From: Tim Burden [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 26, 2003 2:25 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Checkbox Just

Re: [PHP] Checkbox

2003-03-26 Thread Tim Burden
TED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, March 26, 2003 2:26 PM Subject: Re: [PHP] Checkbox On Wednesday 26 March 2003 02:11 pm, CPT John W. Holmes wrote: > >On Wednesday 26 March 2003 01:43 pm, CPT John W. Holmes wrote: > > > > is it possible to have a checkbo

Re: [PHP] Checkbox

2003-03-26 Thread Reuben D. Budiardja
On Wednesday 26 March 2003 02:11 pm, CPT John W. Holmes wrote: > >On Wednesday 26 March 2003 01:43 pm, CPT John W. Holmes wrote: > > > > is it possible to have a checkbox that if it is specified to be > checked > > > > when the page is being formulated then it cannot be unchecked? > > > > > > No. N

Re: [PHP] Checkbox

2003-03-26 Thread CPT John W. Holmes
>On Wednesday 26 March 2003 01:43 pm, CPT John W. Holmes wrote: > > > is it possible to have a checkbox that if it is specified to be checked > > > when the page is being formulated then it cannot be unchecked? > > > > No. No... No. > > > > If you already know you don't want it to be unchecked, the

Re: [PHP] Checkbox

2003-03-26 Thread Reuben D. Budiardja
On Wednesday 26 March 2003 01:43 pm, CPT John W. Holmes wrote: > > is it possible to have a checkbox that if it is specified to be checked > > when the page is being formulated then it cannot be unchecked? > > No. No... No. > > If you already know you don't want it to be unchecked, then don't show

Re: [PHP] Checkbox

2003-03-26 Thread CPT John W. Holmes
> is it possible to have a checkbox that if it is specified to be checked > when the page is being formulated then it cannot be unchecked? No. No... No. If you already know you don't want it to be unchecked, then don't show a checkbox. That's why we have PHP, so you can create your page DYNAMICAL

Re: [PHP] Checkbox

2003-03-26 Thread Reuben D. Budiardja
On Wednesday 26 March 2003 09:16 am, shaun wrote: > Hi, > > is it possible to have a checkbox that if it is specified to be checked > when the page is being formulated then it cannot be unchecked? When you write the page, if the checkbox is checked initially, write also a javascript to prevent it

RE: [PHP] Checkbox related...

2003-02-16 Thread Ernest E Vogelsinger
At 20:34 16.02.2003, Dhaval Desai said: [snip] >How do we do it using the first option i.e javascript to count how many >boxes are checked...could you give some example... [snip] Warning - untested: function valida

RE: [PHP] Checkbox related...

2003-02-16 Thread Dhaval Desai
How do we do it using the first option i.e javascript to count how many boxes are checked...could you give some example... Thanx -Dhaval From: "David McInnis" <[EMAIL PROTECTED]> To: "'Dhaval Desai'" <[EMAIL PROTECTED]> Subject: RE: [PHP] Checkb

Re: [PHP] Checkbox related...

2003-02-16 Thread Ernest E Vogelsinger
At 19:57 16.02.2003, Dhaval Desai said: [snip] >I have a form with 5 checkboxes. I want to make sure that a user checks >atleast 2 boxes before he can proceed. How can that be made possible. [snip] You have 2 options

Re: [PHP] checkbox objects returning false for isset() when submittedvia a form.

2002-10-01 Thread Chris Wesley
On Tue, 1 Oct 2002, DonPro wrote: > Within my form, I have some checkbox objects. If I check them and submit my > form, isset(variable) returns true. However, if I do not check them and > submit my form, isset(variable) returns false. > I am confused as I though that isset() returns true if the

Re: [PHP] checkbox question

2002-09-09 Thread Alex Shi
Thanks for your reply! I tested $_SERVER['QUERY_STRING']. Seems like it only return the string for get method but not for post. Any idea? Alex "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > If you cannot use square brackets, get the value

Re: [PHP] checkbox question

2002-09-09 Thread Marek Kilimajer
If you cannot use square brackets, get the values yourself from $_SERVER['QUERY_STRING'] Alex Shi wrote: >How to ontain data from a group of checkbox using same name? >For example, in a form there're 6 checkboxes and all named as >"Interesting_Area". I know if put a pairs of square brackets at

Re: [PHP] Re: PHP checkbox/hidden field question

2002-09-02 Thread Erwin
Marek Kilimajer wrote: > You are wrong, this is from HTML 4.01 specification: > You're right. Thanks for your reply! Grtz Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: PHP checkbox/hidden field question

2002-09-02 Thread victor
Some check box info here too: http://www.experts-exchange.com/Web/Web_Languages/PHP/Q_20117420.html - Victor > www.argilent.com -Original Message- From: Marek Kilimajer [mailto:[EMAIL PROTECTED]] Sent: Monday, September 02, 2002 7:24 AM To: PHP Subject: Re: [PHP] Re: PHP check

Re: [PHP] Re: PHP checkbox/hidden field question

2002-09-02 Thread Marek Kilimajer
You are wrong, this is from HTML 4.01 specification: value = /cdata/ [CA] This attribute specifies the initial value of the control. It is optional except when the type attribute has the value "radio

[PHP] RE: PHP checkbox/hidden field question

2002-09-02 Thread Tim Ward
you need to define the key for checkbox arrays in order to distinguish them (as only the checked ones will be posted).. something like ... Tim Ward www.chessish.com > -Original Message- > From: Paul Maine [mailto:[EMAIL PROTECTED]] > Sent: 02 September 2002 00:56 > To: PHP PHP > Subje

[PHP] Re: PHP checkbox/hidden field question

2002-09-02 Thread Erwin
> I am executing the follwoing statement as part of a "while" loop. > This is part of a form and I wish to pass the name and value of the > checkbox as a hidden field only is the checkbox is checked. Can you > suggest how I can accomplish this task? > > > "> As you might know, checkboxes don't ha

Re: [PHP] Checkbox question

2002-08-16 Thread José Jeria
Hmmm, then the book "Beginning PHP" from Wrox is wrong... /J Jason Wong wrote: > On Friday 16 August 2002 17:54, José Jeria wrote: > >>I have a page with a checkbox, when i submit to the next page the >>variable $whatever (the checkboxes name.) will be "On" if its checked, >>and it will be unde

Re: [PHP] Checkbox question

2002-08-16 Thread Jason Wong
On Friday 16 August 2002 17:54, José Jeria wrote: > I have a page with a checkbox, when i submit to the next page the > variable $whatever (the checkboxes name.) will be "On" if its checked, > and it will be undefined if its not checked. > > Shouldn't it be a empty string? and not undefined? That

Re: [PHP] checkbox => POST => array??

2002-08-12 Thread Brent Baisley
I'm doing something very similar on a project I'm working on, except I'm using radio buttons. I'm not quite sure what are using the ID for (for style sheets or a data ID). If you are using it as a data ID, then you can make it part of the topic[] array. So it would look like this: Then to pro

Re: [PHP] checkbox => POST => array??

2002-08-10 Thread Jason Stechschulte
On Sat, Aug 10, 2002 at 02:56:48PM -0400, PeterV wrote: > What I have now: > > doesn't return an array $topic?? Probaby due to register_globals. It should exist in $_POST['topic'] -- Jason Stechschulte [EMAIL PROTECTED] http://www.ypisco.com -- I am a bookaholic. If you are a decent person,

RE: [PHP] Checkbox Initial Value based on record in db

2002-05-01 Thread Craig Vincent
> Kinda off topic here, just checking to see If I am on the right track with > this > > > > the result should be : > > IF the record contains the field "abb" and it has a value of 1 > then it will > be checked off for viewing. No, that wouldn't workto have a checkbox autochecked the HTML mus

Re: [PHP] Checkbox Initial Value based on record in db

2002-05-01 Thread 1LT John W. Holmes
It will only be checked if you put CHECKED in your HTML. if($myrow['abb'] == 1) { echo " checked "; } Add that into your input element. ---John Holmes... - Original Message - From: "Daniel Negron/KBE" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, May 01, 2002 1:04 PM Sub

Re: [PHP] Checkbox Initial Value based on record in db

2002-05-01 Thread Miguel Cruz
On Wed, 1 May 2002, Daniel Negron/KBE wrote: > Kinda off topic here, just checking to see If I am on the right track with > this > > > > the result should be : > > IF the record contains the field "abb" and it has a value of 1 then it will > be checked off for viewing. http://www.w3.org/TR/RE

Re: [PHP] checkbox doesn't pass?

2002-04-04 Thread Philip Olson
Unchecked checkboxes pass no values, that's how it works. It's either set or not. Default value for a checkbox is 'on' although you can change that. isset() will work fine. Regards, Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub

Re: [PHP] checkbox doesn't pass?

2002-04-04 Thread Chris Boget
> >But IF I still want to use $HTTP_POST_VARS, what then? What about the > >warning when checkbox is not checked? > I use empty() to check the for the existence of checkbox variables. You can also use isset(); Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

RE: [PHP] checkbox doesn't pass?

2002-04-04 Thread Matt Schroebel
You should use $HTTP_POST_VARS (or $_POST) all of the time. There's security risks in using register_globals. It's not risky in all cases. But register_globals will allow arbitrary variables to be added to into the name space of your script by simply putting them on the uri. Code not expectin

RE: [PHP] checkbox doesn't pass?

2002-04-04 Thread Eugene Mah
At 18:17 04-04-02 +0300, savaidis wrote: >But IF I still want to use $HTTP_POST_VARS, what then? What about the >warning when checkbox is not checked? I use empty() to check the for the existence of checkbox variables. -- - Eu

RE: [PHP] checkbox doesn't pass?

2002-04-04 Thread savaidis
Message- > From: Jason Wong [mailto:[EMAIL PROTECTED]] > Sent: Thursday, April 04, 2002 5:51 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] checkbox doesn't pass? > > > On Thursday 04 April 2002 20:46, [EMAIL PROTECTED] wrote: > > > why do you use $HTTP_POST_VARS? Do

Re: [PHP] checkbox doesn't pass?

2002-04-04 Thread Jason Wong
On Thursday 04 April 2002 20:46, [EMAIL PROTECTED] wrote: > why do you use $HTTP_POST_VARS? Do I miss something? For security reasons. Manual > Security -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk /* Above all things, reverence yourself. */ -- PHP General Mailing List (ht

Re: [PHP] checkbox doesn't pass?

2002-04-04 Thread heinisch
At 04.04.2002 15:23, you wrote: > > >I have a html form with some "text" (T1) and "checkbox" (C1) fields to pass >it to a php script. > >Accessing "text" fields has no problem. > >There is a problem when I use >$C1=$HTTP_POST_VARS['C1'] >to take the value of C1 (ON) >If it is not checked, then it

Re: [PHP] checkbox validation

2001-04-24 Thread Keyur Kalaria
Hi jacky, put an empty square bracket after the variable name as follows: assuming that your above statement is in a loop we will have following structure: * etc... now when you submit the form, an array named id[ ] wi

Re: [PHP] checkbox validation

2001-04-18 Thread Robert Vetter
Jacky wrote: > > Hi all > I have a form with the checkbox like this > > $query="select id from foo"; > $result=($query,$con); > while ($row = mysql_fetch_array($result)) > { > > } > submit button and stuffs here... > One possibility: Add a hidden field in the form and write al

RE: [PHP] checkbox validation

2001-04-18 Thread Matt Williams
> After I submit to next page, at next page, how do I check which > check box is checked? > like this? > > if ($id=="on") { > do something > }else{ > do something > } Hi try this assuming you have no toher check boxes called $id if(isset($id)) { do something }else{ do other } M@ -- P