I've coped with this by writing my own form parser (in defiance of all the good advice here). I n my defence, it was when I first started writing in Perl and I hadn't heard of modules!

Anyway, I am replying to give you a completely different take on this. Personally, I loathe credit card forms where you have to enter the different elements into different fields. I regard tht as user-hostile. The credit card captures I write allow you to enter the whole number into one field and delimit the sections with spaces, hyphens or not at all.

Same goes for the expiry date. Either offer two drop downs for month and year (remembering to have the years move forward automatically relative to the current year) or a single field that will accept dates as 2/02, 2/2002, 0202, 02/02, 02.02 02 02, etc etc. (Drop downs are a lot easier!)


In reply to Re: multiple inputs on form with same name by Elliott
in thread multiple inputs on form with same name by c

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.