Re: Collecting Web Form Information Using a Loop

2010-09-01 Thread Gregory Lypny
Worked well! Thanks, Mike. Gregory On Wed, Sep 1, 2010, at 1:00 PM, Mike Bonner wrote: > use a for each loop instead like > > repeat for each key theKey in $_POST >put $_POST[theKey] & comma after theSubmission > > end repeat ___ use-revolution

Re: Collecting Web Form Information Using a Loop

2010-09-01 Thread Michael Kann
Phil, After testing, I guess it works without the added line anyway. Works either way. Disregard correction. Mike --- On Wed, 9/1/10, Michael Kann wrote: From: Michael Kann Subject: Re: Collecting Web Form Information Using a Loop To: "How to use Revolution" Date: Wednesday, S

Re: Collecting Web Form Information Using a Loop

2010-09-01 Thread Michael Kann
Phil, I added a line to your solution. repeat with i = 1 to 40      put "Q" & i into tKey put the value of tKey into tKey --- ADDED LINE HERE      put $_POST[tKey] & comma after theSubmission end repeat Mike ___ use-revolution mailing list use

Re: Collecting Web Form Information Using a Loop

2010-09-01 Thread Mike Bonner
Oh yeah, to do it the way you want, change yours to put $_POST[("Q" & i)] & comma after theSubmission The way it was setup to begin with, you're trying to match a key with quotes because you explicitly put quote & q etc in for evaluation. So in effect it would return a non-existant array

Re: Collecting Web Form Information Using a Loop

2010-09-01 Thread Phil Davis
On 9/1/10 9:34 AM, Gregory Lypny wrote: Hello everyone, On-rev question about collecting web form information. Suppose I have a questionnaire that uses 40 sequentially named menus for the answer choices. I could collect them individually like this. put $_POST["Q1"] into q1

Re: Collecting Web Form Information Using a Loop

2010-09-01 Thread Gregory Lypny
Hello Mike, Thanks for responding. Yes, it does. I'm able to display the choice made and save them to a file. Gregory On Wed, Sep 1, 2010, at 12:39 PM, Michael Kann wrote: > Does the non-loop script work? > > -- referring to this part: > > put $_POST["Q1"] into q1 > put $_POST["Q

Re: Collecting Web Form Information Using a Loop

2010-09-01 Thread Mike Bonner
put $_POST["Q1"] into q1 > put $_POST["Q2"] into q2 > > Mike > > > > --- On Wed, 9/1/10, Gregory Lypny wrote: > > From: Gregory Lypny > Subject: Collecting Web Form Information Using a Loop > To: "Revolution" > Date: Wednesda

Re: Collecting Web Form Information Using a Loop

2010-09-01 Thread Michael Kann
Gregory, Does the non-loop script work?  -- referring to this part:     put $_POST["Q1"] into q1     put $_POST["Q2"] into q2 Mike --- On Wed, 9/1/10, Gregory Lypny wrote: From: Gregory Lypny Subject: Collecting Web Form Information Using a Loop To: "Rev

Collecting Web Form Information Using a Loop

2010-09-01 Thread Gregory Lypny
Hello everyone, On-rev question about collecting web form information. Suppose I have a questionnaire that uses 40 sequentially named menus for the answer choices. I could collect them individually like this. put $_POST["Q1"] into q1 put $_POST["Q2"] into q2 put $_POST