Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - How to split an input form
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to split an input form

 Post Reply Post Reply
Author
stevem2003 View Drop Down
Newbie
Newbie
Avatar

Joined: 07 November 2003
Location: United Kingdom
Status: Offline
Points: 24
Post Options Post Options   Thanks (0) Thanks(0)   Quote stevem2003 Quote  Post ReplyReply Direct Link To This Post Topic: How to split an input form
    Posted: 18 November 2003 at 8:11am

Hi
I have been trying to find out how to do this for some time, but I don't really know what I should be looked for.
I have a really long input form, to enter info into a database, can this be "split" so that I can have nicely grouped input fields and combo boxes, so the user presses Next to move to the next page? And then the whole record is saved on the last page.
i.e. like a booking form.

Any suggestions, tutorials, websites would be appreciated

TIA
Steve

Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post Posted: 18 November 2003 at 4:54pm
You need to save the values from the previous form in either a session object or a cookie. So once you are ready to post it to the db, retrieve the cookie/sessions
Back to Top
zMaestro View Drop Down
Senior Member
Senior Member


Joined: 11 May 2003
Location: Egypt
Status: Offline
Points: 1183
Post Options Post Options   Thanks (0) Thanks(0)   Quote zMaestro Quote  Post ReplyReply Direct Link To This Post Posted: 19 November 2003 at 3:12am

I pass the data between pages through the forms, making the values of Form1 (page1) hidden fields in Form 2 (page2).

may be session or cookies are better, but I am not familiar with :$.

e.g (form 2 page 2)

<Input type="hidden" value="<%=Request.Form("field1")%>" name="field1">

Back to Top
stevem2003 View Drop Down
Newbie
Newbie
Avatar

Joined: 07 November 2003
Location: United Kingdom
Status: Offline
Points: 24
Post Options Post Options   Thanks (0) Thanks(0)   Quote stevem2003 Quote  Post ReplyReply Direct Link To This Post Posted: 19 November 2003 at 3:22am

Many thanks zMaestro & michael,

just need to decide which way to go

Back to Top
MorningZ View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 May 2002
Location: United States
Status: Offline
Points: 1793
Post Options Post Options   Thanks (0) Thanks(0)   Quote MorningZ Quote  Post ReplyReply Direct Link To This Post Posted: 19 November 2003 at 10:16am

i would think the best way to do it is to have the first page of fields do the INSERT, grab the new ID, then pass that along in the querystring, hidden form field, session....

each subsequent page, do an "update" on that record.....

on the last page (and last update), set some column like "Is Complete" to true so that you (easily) know in the database that a record is complete or not

if you don't save until the very end, imagine your web page visitor's frustration of filling out multiple pages only to time out or have their browser close and loose all that time and effort because none of the data leading up to the last page was saved to the DB yet

Contribute to the working anarchy we fondly call the Internet
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.