Hi everyone,

Here is my problem.

Mary needs to upload state abbreviations into a MySql Database. She will do it via a cgi form. I would like to use "post" and DBI to accomplish this. I must use only one texarea within a form. In other words, my form cannot look like this:

State1: State2: State3: State4: ...
It needs be like this:
States: __ |NY| |NJ| |CT| |ME| |TX| |FL| | | | | |__|

Now, here is the question...
Can I have only one textarea (2columns 52rows) to accept all the states that she wishes to input and then parse that data?
If so, what is the end of line character after each state? Would I get this; states=NYNJCTMETXFL or would I get; states=NY\nNJ\nCT\nME\nTX\FL ? Does CGI.pm "magically" take care of this problem for me? If you're driving in space at the speed of light and you turn your lights on would they work? -- Steven Wright joke

Thanks for your time.


In reply to Entering data into MySql using CGI by La12

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.