Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Strategy to name/process many similar form fields with cgi.pm?

by Brovnik (Hermit)
on Apr 11, 2007 at 11:33 UTC ( #609346=note: print w/ replies, xml ) Need Help??


in reply to Strategy to name/process many similar form fields with cgi.pm?

"50 users at a time. 50 name fields , 50 address fields,"

That rings alarm bells for me.

Either :
1. You are asking someone to manually input details of 50 users at once, or

2. You are expecting an automaton to fill in the form.

In the First case, presumably the users has the input in some other form and is retyping it. If so, get access to the source data (e.g. a spreadsheet or other data file) and input that directly. You will save the user a lot of typing, and will reduce typos and errors dramatically.

In the second case, use a more lightweight mechanism like Soap::Lite to create a server process to receive new user registrations, in which case they can be done one at a time.

Any time you are looking to do something 50 times on a web page, there has to be a better way.


Comment on Re: Strategy to name/process many similar form fields with cgi.pm?
Re^2: Strategy to name/process many similar form fields with cgi.pm?
by Corion (Pope) on Apr 11, 2007 at 11:41 UTC
    use a more lightweight mechanism like Soap::Lite

    SOAP::Lite is not really lightweight. Personally, I'd just POST the data from within a loop.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://609346]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2014-11-27 14:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (184 votes), past polls