Please forgive me that my lack of experience shows in this node.
In the past when I have done basic web applications with perl I would have a few forms here and there and some content read through a database to be interacted with.
My question is, what is the best way to go about handling forms and validation in an easy 'packed' manner. I have been looking into (I think its called) PERL::AJAX which basically does some validation on the fly with some perl. However the draw back from the example that is given is that once the user hits submit and there is an error, the data is lost and the error is displayed. Is there an easier way to keep the flow going without breaking the users data. The amount of data that is going to be inserted in the form i'm creating is substantial so losing the data is a very bad thing.
Other than that I dont need the fanciness of Ajax on the fly validation (its nice to have) if I can just get the information from the user, if the information is bad, return the page with all the data and highlight or display an error list.
For some reason I cannot think in my head how to do this without doing crazy loops, pre-storing all the data, etc.
Please someone with a little experience shead some light on this?
I realize posting this node will get me a lot of negitive comments suggesting should possibily learn how to program a bit more, but this area is always created the biggest brick wall for me.
Any help you can provide of course will be very
thanked! :)
PS (I hope I'm posting this in the correct section)
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.