SitePoint Sponsor |
|
User Tag List
Results 1 to 2 of 2
-
Sep 19, 2001, 22:42 #1
- Join Date
- Sep 2000
- Posts
- 230
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Storing Users Form Responses w/ JavaScript
Scenario:
I have three pages:
1: questions_1.htm (radio buttons as input)
2: questions_2.htm (radio buttons as input)
3: results.htm
Problem/Question:
I would like to to pass the answers from questions 1 and questions 2 and output what the user has done on the results page.
What's the best way to do this? Query string? Cookies?
If so..any good ideas?
Thanks
-
Sep 24, 2001, 16:22 #2
- Join Date
- Feb 2000
- Location
- where the World once stood
- Posts
- 700
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Hi meztec,
option 1) if page one opens page2 and page2 opens results page:
you can place the question & answers in an array that you then access using opener.document.formname to access the previous page's form.
option 2) use a hidden frame (cols=0, rows=0) and keep the data there.
cookies are not good because 1) you may run out of room, and 2) the user may reject the cookie
VinnyWhere the World Once Stood
the blades of grass
cut me still
Bookmarks