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
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
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
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
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
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
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
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
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