Hidden form fields are an option, but not the best. This is due to the fact
that you can right-click and view source and see the hidden fields with their
values. They are only hidden from view within the browser. So, if you are
trasferring sensitive data and security is an issue, I would not suggest it.
The best thing to do is to store the values on each page in a database as your
user moves from one page to the next. It's a lot of work, but it's more secure
than hidden form fields.
If you still decide to go with the hidden fields, you can do something like
this:
1) User completes page 1 and submits the form (which posts to page 2).
2) On page 2, get all your values using Request.Form("FieldName") into
variables.
3) Now write out the hidden fields using response.write's:
Response.Write("<input type=""hidden"" name=""HiddenField1"" value=""" &
strPage1Field1 & """>")
This would produce an output like this:
<input type="hidden" name="HiddenField1" value="SomeValue">
Of course, the value of 'SomeValue' would actually be the value you collected
in step 2 above.
Mark
shadow_snd_2002 <[EMAIL PROTECTED]> wrote:
Ongoing question,
I'm trying to teach myself ASP so that I can collect data online
for
my graduate research project. Long story short it saves a bunch of
time. However dealing with research you have to deal with
confidentially. You have to store consent form info in one data base,
generate an ID number and then store the rest of the data in another
data base with the ID number and not the person's name. I
previously
asked about using session variables to track a users info through the
whole process (ie each user must have their own trackable data) and it
was pointed out that is pretty hard to do with the time out function
on the server. Hidden forms were suggested as they would be an easy
fix. It sounds like a good idea to me but I'm not sure how to
actually code for it. Any help would be appreciated.
Current Webpage Idea Page for Page
Page 1 Consent form � Fill in General Name/Addy/Phone info
Page 2 Redirect to Processing Form 1 - Open DB connection, store
information and generate ID based on hr/min/sec formula.
Page 3 ID number written into hidden field � questions answered
�
redirect to processing form 2
Page 4 ID number written into hidden field - Open DB connection, store
information with the same ID number
Page 5 ID number written into hidden field � answer
questions���..
ETC.
Any help would be extremely useful so feel free to send me a message
or an email if there are any questions
Yahoo! Groups SponsorADVERTISEMENT
---------------------------------
Yahoo! Groups Links
To visit your group on the web, go to:
http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/
To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[Non-text portions of this message have been removed]
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/