Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
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

In reply to fundamental mod-perl start_multipart_form question by Bruce32903

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (7)
As of 2024-04-23 21:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found