View Full Version : A form question
Clintw
01-01-2001, 11:57 PM
I have been asked by one of my customers to put an application up on the web so his customers can sign up direct with him. The application is over 5 pages long and that is my problem. I don't want to create one long page, but instead I would like to create 5 normal pages something like the Futurequest's survey. What would be my best way to organized this so the information is sent in one email instead of 5 different emails.
Thanks for your time and Happy New Year,
Clint
http://www.qualitydg.com
mike_w
01-02-2001, 12:19 AM
For multi-page forms, I generally create one script. Each page is a subroutine, and the value of the submit buttons controls flow to those subroutines. For passing form data from one form to another, I just use hidden data types. Roughly, the script looks like this -
first part -
Try to grab all form data, for all forms.
second part -
Determine which form was submitted from the value of the submit button. Pass the form data to the appropriate subroutine.
third part -
Subroutines for each form.
fourth part -
A mailer routine called after the successful completion of the last form.
You can of course use templates or multiple scripts if you prefer. I just try to keep everything as simple and self-contained as possible. That way, 6 months in the future when I have to tweak something, it's easy to figure out what I had done.
Daniel Jackler
01-02-2001, 08:33 PM
AlienForm is a Perl script that can do this:
http://www.cgi.tj/scripts/alienform/
Daniel
Clintw
01-03-2001, 01:46 PM
Thanks for all the other replies, but is there anyway to set up Matt's script to work on multiple pages?
Clint
Thanks for all the other replies, but is there anyway to set up Matt's script to work on multiple pages?
Not without making custom modifications to the script.
Rich
Daniel, thanks for the alienform pointer. This script seems to have many actual *useful* features not found in other scripts.
Clint, I agree with Daniel, that the alienform script may do what you are wanting to achieve.
I'll be taking closer look at this script...
Rich
vBulletin® v3.6.8, Copyright ©2000-2012, Jelsoft Enterprises Ltd.