Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 03-12-2001, 05:22 AM   #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:
Isadora is offline   Reply With Quote
Old 03-13-2001, 08:14 AM   #2
Member (13 bit)
 
Xayd's Avatar
 
Join Date: Jun 2000
Location: nowhere.com
Posts: 4,819
Send a message via AIM to Xayd
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
Xayd is offline   Reply With Quote
Old 03-20-2001, 08:16 PM   #3
Member (12 bit)
 
Paul Victorey's Avatar
 
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.
Paul Victorey is offline   Reply With Quote
Old 03-21-2001, 08:52 AM   #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?
Isadora is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 06:47 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2