S
shadkeene
Hi,
I've been learning perl/html while creating a program where the user
fills out textboxes and checkboxes while the program places the values
from the text and checkboxes into a .csv file. However, I want all
columns in the .csv file to correspond to the same text/checkbox each
time the user fills out the form so it's easy to run graphs and such
through excel. The problem is, if a checkbox isn't checked, no value
is returned and the column in the .csv file is only filled in if the
user checks the box, resulting in a row of 12 columns one day and 8
columns the next depending on how many boxes are checked. I want a
blank or zero in the .csv column if the user doesn't fill out the
checkbox...that way there is the same number of columns filled out in
the .csv file each time the form is filled out and submitted...and
equally important, the same column corresponds to the same checkbox
each time the form is submitted.
Sorry if this is vague...the code is at work and I'm at home...just
wondering if the above can be done and if I'm going about this the
best way possible....goal is to create statistics from the form data
that folks submit. I'll post the short code tomorrow if necessary.
Thanks for any help.
I've been learning perl/html while creating a program where the user
fills out textboxes and checkboxes while the program places the values
from the text and checkboxes into a .csv file. However, I want all
columns in the .csv file to correspond to the same text/checkbox each
time the user fills out the form so it's easy to run graphs and such
through excel. The problem is, if a checkbox isn't checked, no value
is returned and the column in the .csv file is only filled in if the
user checks the box, resulting in a row of 12 columns one day and 8
columns the next depending on how many boxes are checked. I want a
blank or zero in the .csv column if the user doesn't fill out the
checkbox...that way there is the same number of columns filled out in
the .csv file each time the form is filled out and submitted...and
equally important, the same column corresponds to the same checkbox
each time the form is submitted.
Sorry if this is vague...the code is at work and I'm at home...just
wondering if the above can be done and if I'm going about this the
best way possible....goal is to create statistics from the form data
that folks submit. I'll post the short code tomorrow if necessary.
Thanks for any help.