Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Creating a Multiple Page Registration Form

New Here ,
May 09, 2007 May 09, 2007
I'm not quite sure how to go about creating a registration page that is multiple pages long. How I would like it to work would be like this:

Go to the first registration page (page A) and fill out "information A." Click next to "page B" and fill out "information B." Click next, ect ect... until you have finished the registration process. Information from page A,B,ect... would then combine to create a completed user registration.

I'm working with ASP.NET/Access and was planning on using an Autonumber to make each user unique. However, if I understand correctly, an autonumber would be created each time the user hits "next." So "Information A" and "Information B" would create two different autonumbers, rather than sharing one together.

How do you go about connecting all the registration pages so they share one unique autonumber? I'm assuming (and hoping) that there is a way to do this in Dreamweaver.

Thanks in advance.
TOPICS
Server side applications
576
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 09, 2007 May 09, 2007
Have a look into the Wizard server control, <asp:wizard>. It handles
multipage forms, so you'd insert all of your data in one go.

--
Jules
http://www.charon.co.uk/charoncart
Charon Cart 3
Shopping Cart Extension for Dreamweaver MX/MX 2004



Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 10, 2007 May 10, 2007
Whenever I've done that in ASP/SQL, I use the first page to INSERT a record, and retrieve the record ID, and then subsequent pages just UPDATE that same record. (Passing the record ID from one page to another as a session variable.) So no need to add a second record / create another autonumber.

In case that helps!
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 12, 2007 May 12, 2007
Would you mind elaborating a little more on how you do this? I am pretty new to all of this. I am trying to do the same thing, and don't understand the process that you explained.

Actually, I am not even sure how to link the Access Database to a form in Dreamweaver. I created and wanted to use an Infopath form for this, but I found out that, if the user does not have Infopath, they can't view or fill out the form.

I know this might be a lot to ask, be any and all help would be GREATLY appreciated!!!

DG
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
May 12, 2007 May 12, 2007
LATEST
Use the Inest Record server behavior - Insert - Application objects - Insert Record - Record Insertion Wizard
If you have a auto number be sure after you make the form to click on it in the Behaviors window and set the column with the auto number to <ignore> or you will get a "tried to assign value error" when testing page.

If you want to capture the input of a form, make sure it is using post and then use this code on the 2nd page

<%
MM_valVariable=CStr(Request.Form("textfield"))
Session("MM_regemail") = MM_valVariable
%>

change "textfield" to what your form uses.the name of the session can be anything you want.something unique (email)
put this code at the start of your page and then make a recordset (rsformreg) that filters the Session Variable - the filter for the above would be MM_regemail. Use the record set to update the record and add more data.
If you want to use the regID number (auto number in access) to make a session variable put this after the recordset created above(this will be unique always)

<%
Session("MM_regnumber") = (rsformreg.Fields.Item("regID").Value)
%>

then on the next pages use the session MM_regnumber to filter the recordset to update more info
look into session variables the are very useful also here is how to destroy the variable after your done using it

<%
Session.Contents.Remove("MM_regnumber")
%>
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 10, 2007 May 10, 2007
Awesome, thanks for the help
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines