Carrying a value from one form to another
#1
Posted 03 September 2004 - 11:29 AM
The idea is to form a progressive series of questions. Some may include identifying information so as to distinguish one respondent from another
Somewhere the user is asked to respond "Yes" or "No" to a certain question. When they submit that answer they go to another page which asks them a series of additional questions which will be different if they answered yes or no in the first place.
I want all the values from the questions answered up to the yes or not to be included in the new report I receive on the form input in the second form without the user having to enter those values again.
The idea for the need for this came when I was visiting a site dealing with cars. A form asked me to input the kind of car I drove from a drop down list, after I submitted that information I was taken to another page which asked me right off to input exactly the same information which I had just provided. What a way to tick off a user!
Is there a way to avoid this, especially if one is staying on the same site?
Jack
#2
Posted 03 September 2004 - 02:57 PM
#3
Posted 03 September 2004 - 03:20 PM
Is there some way to do this Client Side? Your mention of cookies suggests it might be possible but I have no idea of how to implement it. If you have an idea could you give me a simple example of the code I'd use on the originating page and the second page where the value is to be picked up?
Thankx
Jack
#4
Posted 03 September 2004 - 03:26 PM
Are you able to use cgi ?
This post has been edited by ColdinCbus: 03 September 2004 - 03:31 PM
#5
Posted 03 September 2004 - 05:17 PM
A link for 20 questions is here. It is not exactly what you are looking for, but when you view source it, it does bring back an interesting result.
Please post back when a suggestion works, so that others may learn.
#6
Posted 03 September 2004 - 06:38 PM
Are you looking for a way in HTML that someone can pick from a drop-down list, make a choice, and then make another choice from another list, that would only apply to the choice that was already made? Ok-it is a little hard to explain in words. How about a visual?
(choice 1) Ford Chevy or Geo
(choice 2) Door handles
Customer one picked Ford, and ONLY Ford door handles appear for a 2nd choice.
Customer two picked Chevy, and ONLY Chevy door handles appear for a 2nd choice.
Customer three picked Geo, and ONLY Geo door handles appear for the 2nd choice.
Is that what you are looking to do?
Please post back when a suggestion works, so that others may learn.
#7
Posted 04 September 2004 - 12:05 PM
Jason, the 20 question site does pose some interesting things but I don't think it will help here.
What I had in mind is using one form which will pick up some values that were provided by the previous page visited and incorporate those values without any input from the user.
For example I have two pages which review product A and product B. I ask the user on that page " Have you personally used this product?" and the user answers
- Yes or
- No
Now he arrives at another page which will be different depending on whether the answer was YES or NO, on which I ask a series of further questions. However, the form which I receive from this second page will contain, in addition to whatever values are entered by the user, 1) the Name of Product A or B, and 2) the Yes or No which was enered in the first form.
Its important that the Name of Product A or B be picked up and filled in from the referring page so that this second form can be used by an unlimited number of referring pages rather than having to have a separate form for each one.
I hope this makes sense to you.
Jack
#8
Posted 04 September 2004 - 03:32 PM
In reference to my example, when someone choses Ford, they are brought to a page that already has Ford on the page. When someone choses Chevy, it has Chevy as the default. When someone choses Geo, Geo is posted in a box.
If that result is what you are looking to do, then there are many different ways that you can do it. The most popular and efficient way would be to have individual forms, with each choice, as a seperate website. When a customer makes a choice (Ford, Chevy, or Geo), then it is really just finalizing the link that points to the one that was already written.
The coding for this, is easier with a program designed to handle HTML coding. I would recommend that you take a look at Dreamweaver MX. It does have a 30-day free, full-function trial. Even though the full version is well over $300, the knowledge gained from the trial would be invaluable. One thing about this program though, it can be quite overwhelming on how complex it is.
Once you become more experienced with using this, you could go two different ways to continue using this type of tool. You could Google for free web authoring tools, or apply a little known trick on how to 'extend' the time on time-trial based programs. I could help you out on the latter.
Please post back when a suggestion works, so that others may learn.
#9
Posted 06 September 2004 - 07:43 AM
Actually I was hoping to have one page, one web page collect all the information regardless of weather the user entered Ford, Chevy oor Geo. but the form report I received would hae a space in it which contained the value "Ford", "Geo, or "Cheyy", depending on which page the user had come from.
I want to avoid having the user needing to fill in that value, because the question was asked on the earlier page and I can just imagine a user ranting "What's going on here, I just answered that question. Why do I have to answer again? If these nerds are so dense that I have to answer every question twice, I'm going to take my business elsewhere ...."
Besides, I feel it is more efficient use of computer resources to have just one form instead of 250 that are the same. When we just have Ford, Chevy oand Geo it's not so bad but you can extrapolate the use of resources when we have a situation where there might be hundreds or thousands of referring pages.
Jack
#10
Posted 06 September 2004 - 08:18 PM
Circle BleepingComputer on Google+!
Become a BleepingComputer fan: Facebook
Follow us on Twitter!
How to detect vulnerable programs using Secunia Personal Software Inspector <- Everyone should do this!
#11
Posted 07 September 2004 - 08:27 AM
I know it's a limitation so I was looking for some kind of workaround.
Can a person write and read cookies using JavaScript? This might be a solution, but I'm not that up on JS to know how to code it.
Jack
#12
Posted 07 September 2004 - 12:25 PM
Read this article:
http://www.devshed.com/c/a/JavaScript/Usin...ith-JavaScript/
Circle BleepingComputer on Google+!
Become a BleepingComputer fan: Facebook
Follow us on Twitter!
How to detect vulnerable programs using Secunia Personal Software Inspector <- Everyone should do this!
#13
Posted 07 September 2004 - 07:23 PM
I think this may get me going to where I want to.
Jack

Help

Back to top










