Hello, artist.
hardburn's suggestion is quite interesting. Personally, I feel more confortable with a templating system. Please take a close look at HTML::Template and HTML::Mason. They should do the trick for you as good as WWW::Form. From now on, I think this is a personal taste question, you should look at the modules and try the one you feel more confortable with.
If you have a lot of images and a pretty extense survey, maybe building a template for the page helps a lot. I feel confortable with HTML::Template, and using it your CGI will look like
use HTML::Template; $template = new HTML::Template( '/path/to/template' ); $template->param( $_, $defaults{$_} ) foreach( keys %defaults ); print $template->header(), $template->output(), "\n";
Of course, you will need something like this to display the survey, and then another chunck like this to display the "Thank you" page, and some code in the middle to send your email, or store the data at a database (what I personally think that's more appropriate)...
Ah! Maybe Config::Simple could help you to organize the survey form a little, too.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Just Another Perl Monk
In reply to Re: HTML Form and CGI script
by monsieur_champs
in thread HTML Form and CGI script
by artist
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |