How To Make a Mutli Page Form
My question is: How Can I Make A Mutli Page Form using CGI? All I want my form to do is collect all the data and submit it to me in the e-mail. OR Does anybody know where I can download a free mutli page cgi script to use?
Greg K posted this at 01:02 — 13th May 2006.
He has: 2,145 posts
Joined: Nov 2003
What language are you wanting to do it in? I created a multi page signup for work before in PHP, basically it was:
1. Select Username / email / password
2. Company Information (contact info)
3. Billing Information (subscription type, credit card info)
4. Summary to confirm all entered info and a Terms of Use to agree to
On the summary page, you could go back to any of the other three pages to edit the info. Basically it was all the same page, with a variable that told it what section it was on.
Was a bit tricky to do. This would be a good sample to put on the tutorial pages I'm thinking of doing.
-Greg
cboudy posted this at 01:43 — 13th May 2006.
They have: 13 posts
Joined: May 2006
Greg, I was looking to do this using CGI (only because I've had more experience with it). I just started reading up on php today (so I am a newbie). So whatever info you can provide me with would be helpful.
Would it be possible to see a copy of your code, (the php form you build) to see how it all works?
Greg K posted this at 02:38 — 13th May 2006.
He has: 2,145 posts
Joined: Nov 2003
I will try to work on that this weekend, when I have it, I'll post a link to it here.
-Greg
cboudy posted this at 16:47 — 13th May 2006.
They have: 13 posts
Joined: May 2006
Thanks Greg, your a big help!
timjpriebe posted this at 21:35 — 13th May 2006.
He has: 2,667 posts
Joined: Dec 2004
One option is to have each subsequent page collect the data from the previous page, insert it into hidden form tags, and pass it along to the next page. Then the final page that doesn any processing and emails you the results can just access all the data.
Does that make sense?
Tim
http://www.tandswebdesign.com
cboudy posted this at 01:40 — 14th May 2006.
They have: 13 posts
Joined: May 2006
Yes that does make sense, thanks tim.
CptAwesome posted this at 05:04 — 14th May 2006.
He has: 370 posts
Joined: Dec 2004
The only thing that can be somewhat problematic is if the captured info has quotes and they are unescaped, it could break the page/system. An alternative (if you have file write access) is to store the information in a text file on the webserver, and then when the form is completed delete the file. You'd also probably need to make a 'garbage collector' or just routinely go and delete the files of people who did not complete the process.
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.