I know that this is not the forum for this question, I am only
looking for a pointer in the right direction here. I need to gain a better
understanding of HTML forms, specifically checkboxes. What I am looking for
is once I present a list of checkboxes and the user makes his selections,
$checkbox1 will equal scoobydoo and not be set if the box is not checked.
hope this helps...
Ryan
-Original Message-
From: NIPP, SCOTT V (SBCSI) [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 19, 2002 9:28 AM
To: '[EMAIL PROTECTED]'
Subject: [PHP-DB] HTML Forms question...
I
(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
: [PHP-DB] HTML Forms question...
You learn something new every day! I'll have to remember the [] thing.
My way of handling this situation that does not screw up JavaScript is to
assign the names sequentially, so instead of all the checkboxes being system
they would be system0,system1,... Since PHP
-
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
14 matches
Mail list logo