Hi,

I've been working on putting together a multi-page form in a single
perl script.  I have everything working as a single page form (writing
to mysql database and emailing the output upon submit) but have not
had any luck breaking the form into multiple pages.  As mentioned
before, I'm not an everyday perl programmer so I may be going about
this whole thing wrong.

I'm trying to break 20 parameters into 4 pages as:

if ($param1 eq "") {

<display page1>

} elsif ($param6 eq "") {

<display page2>

} elsif ($param11 eq "") {

<display page3>

}

etc...

This works for displaying the first page and the second page but
returns to the first page on submitting the second page.

I have a combination of select, radio, and text inputs.  I'm using:

For the selects -

<select name="name" id="name">
<options>
</select>
<input type="hidden" name="name" id="name" />

For the radio buttons -

<input type="hidden" name="name2" value="yes" />Yes
<input type="hidden" name="name3" value="no" CHECKED />No

For the text boxes -

<input type="hidden" name="name4" id="name4" />


1. Are there problems with the way I'm trying to use if / eslif, to
display the pages?  If so, is there a simple way to do this?
2. Am I passing the hidden values incorrectly.  Is there a way to
output what is passed?
3. What security issues should I be thinking about considering I'm
using DBI and Mail::Sendmail?

Thank you in advance.  I've been searching a reading everything I can
for over a week.  Any suggestions/examples or pointing to information
is greatly appreciated.

Best,

Herb


-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to