On Wednesday 16 Jun 2010 01:58:19 Herb wrote: > Hi All, > > I’m relatively new to perl and cgi and have a question about putting > together a multi page form. > > My goal is to create a form that has multiple pages with a few > questions per page so that visitors aren’t dropped into a large single > page form that they feel is too daunting and therefore don’t fill it > out. I would like the form to write to a mysql database and I’ve read > that gathering the information via multiple pages would be done with > ‘hidden fields’. > > My question is: > > Is it best to create multiple HTML pages containing hidden fields with > the last pages’ action submitting to the cgi script, or is it fine to > create one cgi script for the entire process?
I've always done it with hidden fields, which allows the final form submission to be done atomically. It is possible that web-development frameworks such as Catalyst (see: http://www.catalystframework.org/ ) provide elegant abstractions above it, but I never investigated. > > As I said I’m pretty new to scripting this type of thing and any > suggestions on the pros and cons of what I’d like to do would be > greatly appreciated. I’ll be researching the finer points of writing > to mysql and security issues regarding plain text username/password > for mysql. > > Thanks in advance, I appreciate any suggestions. > > Best regards, > > Herb.. > > > P.S. - If there is a better group for me to be posting in, please let > me know... Here is good enough. There's also beginners-cgi (which may not be very active) and http://webdesign-l.com/ . Regards, Shlomi Fish -- ----------------------------------------------------------------- Shlomi Fish http://www.shlomifish.org/ My Aphorisms - http://www.shlomifish.org/humour.html God considered inflicting XSLT as the tenth plague of Egypt, but then decided against it because he thought it would be too evil. Please reply to list if it's a mailing list post - http://shlom.in/reply . -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/