Skip to main content
Known Participant
March 19, 2008
Question

passing FORM variables through CFSET

  • March 19, 2008
  • 1 reply
  • 380 views
I am writing an account creation page for my site. After the user inputs the required information, I would like to 1. confirm that their email is not a duplicate of another user 2. Pass them off to another page that allows them to confirm the information that they input and submit the info to the database. I would like to have the email confirmed on that page through passing the FORM.email variable to the #CGI.SCRIPT_NAME#. If the RecordCount on the query for duplicate email addresses comes back VALUE=0, use CFLOCATION to pass to the next page with the FORM variables intact. However, as forms can only have one action attribute, what is the best way to do this, in your opinion?
Thanks so much for your help!
dan
This topic has been closed for replies.

1 reply

Inspiring
March 19, 2008
use session var to store form data:
- user submits form.
- form posts to same page (to itself).
- check for duplicate email
- if no duplicate found, copy form to a sesion var and cflocate to next
page; if duplicate found show error to user
- on next page display user-submitted data from the session var

make sure session vars are enabled in cf administrator and
sessionmanagement is enabled in your appliction.cfm/cfc



Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/
Known Participant
March 19, 2008
Azadi,
Thank you very much for your detailed response. That fixed my variable pass problem.
dan