|Welcome to the Monastery|
fundamental mod-perl start_multipart_form questionby Bruce32903 (Scribe)
|on Feb 02, 2009 at 14:51 UTC||Need Help??|
Bruce32903 has asked for the wisdom of the Perl Monks concerning the following question:
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 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.