---
From: Luis Moreira [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 10, 2003 9:31 AM
To: Charles P. Killmer
Subject: Re: [PHP-WIN] checkboxes in php
Must be whitout coffee, but don't see the point.
The passing of check boxes comes from the fact of selecting them or not.
I tried to insert yo
>
Charles Killmer
Netgain Technology
-Original Message-
From: Luis Moreira [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 10, 2003 8:38 AM
To: Harpreet
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] checkboxes in php
Take this for an example :
This script fills part of a form with ch
Take this for an example :
This script fills part of a form with checkboxes named C1,C2, ect
$cnt=0;
for ($i=1;$i<=$n_alunos;$i++) {
if ($cnt==0) {
print "";
}
print "Aluno
$i";
$cnt++;
if ($cnt==$colunas) {
print "";
$cnt=0;
}
}
This script receiv
PHP passes variables it initalizes, not all.
You should check if the variable is set with the "isset" function.
Anyway, if you want. post your code, and I'll take a look at "line 27", wich
should be referring to an "array element" corresponding to a non-selected
checkbox.
Luis
- Original Mess
Could you please post your code?It's a lot easier to find the
problem ie: what is line 27 trying to do?
Cheers,
~Steve
Harpreet wrote:
I have 4 checkboxes in a form. I can select any number of boxes.When i go to
the results page it gives me errors for boxes i dont select
Notice: Undef