Copy link to clipboard
Copied
Greetings folks,
Once upon a time I created a site in GoLive, which I've recently ported (screaming and kicking) into Dreamweaver CS5/Windows.
The site has a very simple form where people check off workshops they want to register for, add some personal data and submit the application which gets saved to a text file and emailed to the site owner. For years I've used mindpalette.com's ProcessForm 3.0 PHP form processing script with no trouble at all.
Recently I had to change a bunch of workshops, so I used DW's Checkbox Group feature. The main input NAME is "course", and the Checkbox group added incrementing ID's "course_0" "course_1" etc.
HOWEVER, if someone wants to sign up for more than one course, the form only returns one of the values (the last one) when the form is submitted.
The form is here: http://academyofancientreflexology.com/reflexology-workshops-classes-2.html
The very little I understand about this, is that the data is now in an array and I can't figure out how I get the form to output the course info when more than one course is selected.
Any help would be much appreciated. I'm sure I've left out really helpful details, so just ask.
THANKS.
Copy link to clipboard
Copied
I'm really not familiar with DW checkbox group feature, but the script will use the field name, so they all need to be different.
Copy link to clipboard
Copied
Thanks very much for your reply. I'm not clear what you mean by "they", however in the meantime I figured out a simple way around this whole mess. I added another button for people to select BOTH workshops they wanted to take. And I changed all the checkboxes to radio buttons. (And I did it all in GoLive which I can play like a fine instrument. DW not so much.)
Thanks again.
Copy link to clipboard
Copied
By 'they' I mean all of the checkboxes. The form script will probably process the form fields based on their name. Since you have given all checkboxes the same name, the script can only see one field.