I am fairly new to perl and really like it. I have been able to use it to write scripts to handle data coming back from a single web page.
I am at the edge of my knowledge with a new project. I have multiple data form pages (e. g., Form1.html, Form2.html,.....) that I want to present randomly. I also want to get data from each of these forms, too. An initial form page collects some background info and then the task is to randomly choose and present six forms and to get their data. I have been able to set up the randomization process and to get the pages to serve.....
Everything *seems* works until the first random form. From what I can tell, once that first form is submitted, the script starts anew (i. e., a new process or a new thread). I initially thought/"hoped" that each time the same client called the script in working through the six random pages, the script would take up where it last left off (i. e., serving a page and storing the form data). This is not happening, though
I've done some reading about shared variables and about threads, but I am not sure that this is what I need. Could anyone give me a nudge or point me in the direction I need to go? Thank you...
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.