Hello.

For form field validation, how do I do the following where the field validation is contained in the file called by the existing <form action...>? This file displays a page with the message 'Please press Back and try again.' once validation has failed. Upon pressing the 'BACK' button, the fields are EMPTY and the user must start from scratch and therefore is a turnoff.

1) How to STORE form field values and return them back to their form fields AFTER using the 'BACK' button once form fields failed validation.

Is there a way to re-capture/recall those field values (pass those variables back) e.g. via enviromental values (for ANY browser) to the previous page?

This is needed for a pre-existing script.

2) How to do this validation for those browsers NOT using cookies and/or javascript?

3) If either cookies or javascript must be used, which is more prevalent for a browser to have enabled?

Thanks in advance.


In reply to How to re-capture/recall form field values AFTER pressing the 'BACK' button? by newbie00

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



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.