Gossamer Forum
Home : General : Perl Programming :

Multi page forms: wizards if you will...

Quote Reply
Multi page forms: wizards if you will...
A UBB at last, huh? Nice to see it, the WWW Threads was getting crowded.

I got me a general Perl CGI question. I want to do a nice contact form on my site, in the form of a wizard that takes the user through the questions, and only asks what's needed. For example, on the first screen, the wizard asks for name and email, second screen asks if the user would like to give other contact infomation. If they do, it takes them to the further information, if they don't, it skips it and goes to the next step. Microsoft use them, as do Euroseek (http://www.euroseek.com) for their Add URL process.

Go to http://ie-comm.com/iewebs/contact/index.htm to see what I mean. Note that these pages would normally be in a popup window and they are only called through regular URL 'get' commands, not CGI.

I can understand the operation, but I don't think I'd be able to get into the nitty-gritty of it. I realise that the variables would have to be transferred as the user goes along through the questions using hidden inputs, and this would probably be fairly simple if it was a multi-page form with pages that would be used anyway. However, as I said, I only want to ask him the needed questions, plus I'd like some form of validation as he goes along also. I've installed loads of scripts, but only written print statements for a laugh, see if I could do it. Ordinarily I'd mull it along until I figured it out, but right now I don't have time.

Can anybody help me with this? Do I need to get someone to do it for me, or is it simply a case of ifs and thens (more complicaed with validation I guess). Or can you point me to someone who's already done it and tell me where I can get the code? And if not, how much does Alex cost? )

Cheers,
ad
Quote Reply
Re: Multi page forms: wizards if you will... In reply to
You might want to take a look at:
http://cgi.tj/scripts/alienform/

John
Quote Reply
Re: Multi page forms: wizards if you will... In reply to
Thanks John, but I've been using Alien Form on the site for a while. It's an excellent script (when you get the hang of it), and it's the script I'll use to send the final information to me when the wizard is complete, but the script I'm looking for is the <b>actual wizard part</b>, that will gather the information in multi page forms.

Thanks anyway. Wink

Adam