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
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.