Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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?

Replies are listed 'Best First'.
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?
[Corion]: Meh. I need to find myself a better "programming" feed than r/programming (which is just HackerNews reposts and advertisements, very little code). Maybe I should select a list of links that I liked on r/programming and then google for ...
[Corion]: ... an aggregator site that also listed (ideally) all of these links once. And maybe also have an exclude list to blacklist some of the most spammy links that the site may have never mentioned at all
[marto]: I gave up reading HN at all, and feel much better for it :P
[Corion]: Now, how to best automate that Google search ... :-)
[Corion]: marto: Yeah, I'm also short of not reading it at all. I already stopped reading it in the morning because it gave me a foul mood.
[Corion]: The good posts on HN are the non-computing posts. Most of the other stuff is maybe relevant to you if you are 20 and live in Silicon Valley...
[Corion]: Two attributes that don't describe me.

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (9)
As of 2017-07-24 13:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (354 votes). Check out past polls.