Bruce32903 has asked for the wisdom of the Perl Monks concerning the following question:
Greetings,
I have been using books and web postings to teach myself mod-perl. I am starting to have some inconsistent problems and I need to double check to see if I have correctly figured out what I am doing wrong.
I started with one subroutine doing "common stuff" and posting appropriate text/controls to the html page. I then did a context dependent jump to one of several subroutines to do more tasks and make additional postings to the html page. This seems to be wrong.
My questions are:
1) Am I correct that all printing to the html page must be done within a SINGLE start_multipart_form and its matching end_form? (I was not doing this)
2) Am I correct that I should be able to have more than one submit button in that form? (so far only one button has worked)
3) Am I free to use plain old print statements above and below the form code, or do I need to have all writing to the html page done within the form? (I have used prints above and below multiple forms and I'm starting to think that this is wrong)
Thank you,
Bruce
=== UPDATE===
Thank you to all who responded. I'll read the suggested link and put to use the suggestions/comments. I should be able to get a little farther now.
Thank you,
Bruce
I have been using books and web postings to teach myself mod-perl. I am starting to have some inconsistent problems and I need to double check to see if I have correctly figured out what I am doing wrong.
I started with one subroutine doing "common stuff" and posting appropriate text/controls to the html page. I then did a context dependent jump to one of several subroutines to do more tasks and make additional postings to the html page. This seems to be wrong.
My questions are:
1) Am I correct that all printing to the html page must be done within a SINGLE start_multipart_form and its matching end_form? (I was not doing this)
2) Am I correct that I should be able to have more than one submit button in that form? (so far only one button has worked)
3) Am I free to use plain old print statements above and below the form code, or do I need to have all writing to the html page done within the form? (I have used prints above and below multiple forms and I'm starting to think that this is wrong)
Thank you,
Bruce
=== UPDATE===
Thank you to all who responded. I'll read the suggested link and put to use the suggestions/comments. I should be able to get a little farther now.
Thank you,
Bruce
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: fundamental mod-perl start_multipart_form question
by bassplayer (Monsignor) on Feb 02, 2009 at 15:55 UTC | |
by Bruce32903 (Scribe) on Feb 02, 2009 at 17:13 UTC | |
by perrin (Chancellor) on Feb 03, 2009 at 00:23 UTC | |
by Anonymous Monk on Feb 03, 2009 at 03:03 UTC | |
by bassplayer (Monsignor) on Feb 03, 2009 at 15:29 UTC |
Back to
Seekers of Perl Wisdom