|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (8 bit)
Join Date: May 1999
Location: Conroe, Texas, USA
Posts: 145
|
I'm using the BNB survey.cgi script from BigNoseBird.com
Permissions and paths are okay. The problem I am having is in the results. Original script assumed several questions & user chooses one answer for each. I'm doing opposite. One question & using "choose all that apply". When the results page comes up, only one of the 2-3 items selected will tally, the last item selected. I've been battling cgi scripting for months. That's why you haven't heard a peep out of me in so long. I'm so close to making this work & learning. ====================================================== Here's parts of the code. I'll use brackets to be certain its stays readable. The original html sample form was set up as: [INPUT TYPE="RADIO" NAME="ITEM_1" VALUE="ITEM_1|Male" >Male [INPUT TYPE="RADIO" NAME="ITEM_1" VALUE="ITEM_1|Female" >Female The survey.cgi calls on a second file named survey.srv This is their sample of the survey.srv: ITEM_1|Male:6:Respondent's Sex: ITEM_1|Female:5:Respondent's Sex: ITEM_1|No Answer:20:Respondent's Sex: ITEM_2|First Time Visitor:10:Visitor Status: ITEM_2|Been Here Before:5:Visitor Status: ITEM_2|No Answer:16:Visitor Status: |
|
|
|
|
|
#2 |
|
Member (13 bit)
|
Seeing as no one seems to have any ideas here, it seems that this thread might be better served in Programming, so moving it over for ya.
Xayd |
|
|
|
|
|
#3 |
|
Member (12 bit)
Join Date: Mar 1999
Location: MN or WI
Posts: 3,017
|
You need to post more code than that, if you want people to debug. Specifically all the code from the question you want multiple inputs to, and also the part of the script that parses the answers.
Without knowing much about the situation, it's hard to say what you should do, but why not make checkboxes, each of which is considered (to the script, anyway) to be a separate variable/separate input? The user would see the checkboxes grouped together, but the script would only see X number of checkboxes, each operating independantly of any others.
__________________
Paul M. Victorey ------------------ I am not responsible for any problems that may arise as a result of following my advice. This includes, but is not limited to, computer failure, loss of data, nuclear war, famine, boils, no clean laundry, your daughter running off with a biker gang, or armageddon. Take my advice at your own risk. |
|
|
|
|
|
#4 |
|
Member (8 bit)
Join Date: May 1999
Location: Conroe, Texas, USA
Posts: 145
|
Someone else suggested that same fix. Great problem solvers thinking alike? I'll be taking another run at it this evening.
As usual, I overstretched my skill level on this site design, by trying new things I hadn't done before. Is there a better way to learn computer stuff? To learn cgi scripting, is it necessary to study perl programming from start to finish? |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|