Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Andrzejek on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Inserting Form Values

Status
Not open for further replies.

GSXR179

Programmer
Oct 11, 2001
34
US
Hi,

I'm working on a project, and I can't seem to figure out something really basic.

I'm developing a simple questionaire.

The user is to be presented with one question per page with a Previous and a Next button on it. The input values will be textbox, radio buttons or check boxes. The FORM Action can either be set to call the same page or an action page.
I have two submit buttons at the bottom of the page one to go forward and one to go back.

Now here's my question. How can I navigate through these pages and insert the information from the form fields?

When I click the Next button I insert the response and move to the next question, When I click the Back button I want to make sure that I capture that response as well.

If anyone can help me out with this it would be greatly appreciated.

Thanks in advance.

Mike


 
You can pass the answer to the previouse page and then check for it when they come back to the page:

<cfif isdefined(&quot;answer_q1&quot;)and answer_q1 neq &quot;&quot;>

hope this helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top