CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Need a Custom or Prewritten Perl Program?: I need a program that...:
multiple input -- form

 



FrozenSky
Deleted

Mar 5, 2001, 11:48 AM

Post #1 of 3 (681 views)
multiple input -- form Can't Post

ok, i have a project. the user has to input information from serveral different pages and on the final page, click a submit button that will send all the info to a specific email address, all in one email. if someone has a prewritten cgi for this, i would be extremely grateful, or if someone has any ideas that would help me, i thank you in advance.



Chef
Deleted

Mar 5, 2001, 5:05 PM

Post #2 of 3 (679 views)
Re: multiple input -- form [In reply to] Can't Post

Take a look at www.mitridat.com - they have a script you're searching.



rGeoffrey
User

Mar 6, 2001, 2:38 PM

Post #3 of 3 (669 views)
Re: multiple input -- form [In reply to] Can't Post

Or if you don't want to buy that solution from http://www.mitridat.com/cgi-perl-scripts/form-processing.html you can make your own using one of several known methods.

I am partial to the one that uses "hidden" tags and can be found as receipe 19.12 in the "Perl Cookbook".

If you have a multi-page form, then each page has its part of the form available as regular form elements and the user makes their changes. But all the elements from the other pages are also on the page using tags like...


Code
<input type="hidden" name="firstname" value="R.">

Then a single script is used as the action from all the pages. If the user is done, then it goes and does its thing. But if they are just switching pages, it is responsible for building the page with the right part ready for manipulation and all the other parts included as hiddens.

Or you can store all the values you know about in a temporary file on the server until all the parts are there.

Or you can put it in a cookie, but if you have a form big enough to span several pages it is probably too much to store in a cookie.

I am told that the documentation for CGI.pm has more to say on this subject, but as I refuse to use it, I can not say for sure.



--
Sun Sep 9, 2001 - 1:46:40 GMT, a very special second in the epoch. How will you celebrate?

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives