La12 has asked for the wisdom of the Perl Monks concerning the following question:
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:
It needs be like this:State1: State2: State3: State4: ...
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Entering data into MySql using CGI
by tachyon (Chancellor) on Oct 09, 2001 at 01:26 UTC | |
|
Re: Entering data into MySql using CGI
by arturo (Vicar) on Oct 09, 2001 at 01:17 UTC | |
by ghost (Beadle) on Oct 09, 2001 at 01:37 UTC | |
by cLive ;-) (Prior) on Oct 09, 2001 at 04:59 UTC | |
by ghost (Beadle) on Oct 09, 2001 at 07:18 UTC | |
|
Re: Entering data into MySql using CGI
by cLive ;-) (Prior) on Oct 09, 2001 at 01:10 UTC | |
|
Re: Entering data into MySql using CGI (boo)
by boo_radley (Parson) on Oct 09, 2001 at 01:21 UTC |