input type=checkbox name=checkbox1 value=scoobydoo
if this is checked the value scoobydoo will be put into the array with index
checkbox1 which array is dependant on which method your form uses. :-) If it is not
checked then there is no entry. in PHP with register_globals on the variable
(USA) [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 19, 2002 10:35 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP-DB] HTML Forms question...
input type=checkbox name=checkbox1 value=scoobydoo
if this is checked the value scoobydoo will be put into the array with
index checkbox1 which array
OK. If I am using the POST method and the checkbox 'name' for all
of the checkboxes is 'system', how do I access the results? I am
researching on the PHP site trying to figure out what this array is, and
how
I access this if the index name is the same for all elements. I am hoping
that
Message-
From: NIPP, SCOTT V (SBCSI) [mailto:[EMAIL PROTECTED]]
Sent: 19 November 2002 08:53
To: 'Ryan Jameson (USA)'; [EMAIL PROTECTED]
Subject: RE: [PHP-DB] HTML Forms question...
OK. If I am using the POST method and the checkbox 'name' for all
of the checkboxes is 'system', how do
, 2002 6:13 PM
To: NIPP, SCOTT V (SBCSI); [EMAIL PROTECTED]
Subject: RE: [PHP-DB] HTML Forms question...
If you name the checkbox as name=system[] then PHP will automatically
create an array of the checkbox values which can be subsequently accessed
via $_POST['system'][n] - be warned however
-Original Message-
From: Rich Gray [mailto:[EMAIL PROTECTED]]
Sent: 20 November 2002 01:13
If you name the checkbox as name=system[] then PHP will
automatically
create an array of the checkbox values which can be
subsequently accessed
via $_POST['system'][n] - be warned however
: Tuesday, November 19, 2002 1:35 PM
To: 'Rich Gray'; NIPP, SCOTT V (SBCSI); [EMAIL PROTECTED]
Subject: RE: [PHP-DB] HTML Forms question...
-Original Message-
From: Rich Gray [mailto:[EMAIL PROTECTED]]
Sent: 20 November 2002 01:13
If you name the checkbox as name=system
=javascript:myfunction(objectName)) as long as the function is
included in the page.
Sorry for any confusion.
-Original Message-
From: Hutchins, Richard [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 19, 2002 1:45 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP-DB] HTML Forms question...
Not only
] [EMAIL PROTECTED]
To: 'Rich Gray' [EMAIL PROTECTED]; NIPP, SCOTT V (SBCSI)
[EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, November 19, 2002 7:35 PM
Subject: RE: [PHP-DB] HTML Forms question...
-Original Message-
From: Rich Gray [mailto:[EMAIL PROTECTED]]
Sent: 20 November 2002 01:13
: Tuesday, November 19, 2002 6:13 PM
To: NIPP, SCOTT V (SBCSI); [EMAIL PROTECTED]
Subject: RE: [PHP-DB] HTML Forms question...
If you name the checkbox as name=system[] then PHP will automatically
create an array of the checkbox values which can be subsequently accessed
via $_POST['system'][n
-
From: 1LT John W. Holmes [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 19, 2002 11:11 AM
To: NIPP, SCOTT V (SBCSI); 'Ryan Jameson (USA)'; [EMAIL PROTECTED]
Subject: Re: [PHP-DB] HTML Forms question...
OK. If I am using the POST method and the checkbox 'name' for all
of the checkboxes
Jameson (USA)'; [EMAIL PROTECTED]
Subject: RE: [PHP-DB] HTML Forms question...
OK. This has been most helpful, but now I am getting something
strange. The first element of the array of data is behaving
strangely. For
the code snippet below I am not getting the first selected
'; 'Ryan Jameson (USA)'; [EMAIL PROTECTED]
Subject: RE: [PHP-DB] HTML Forms question...
OK. This has been most helpful, but now I am getting something
strange. The first element of the array of data is behaving
strangely. For
the code snippet below I am not getting the first
13 matches
Mail list logo