Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Handling Dynamically Created Forms

by bjelli (Pilgrim)
on Mar 21, 2001 at 04:28 UTC ( #65914=note: print w/replies, xml ) Need Help??


in reply to Handling Dynamically Created Forms

I agree with what OeufMayo said about using CGI.pm, and recommend you use buckaducks excellent code-snippet.

This code is maybe closer to what you had in mind:

use CGI; $query = new CGI; while(1) { $i++; $value = $query->param("name$i"); last if ! $value; # do something with value };

but BEWARE: this has several problems. for example: empty strings are treated as no value at all and break the loop!

--
Brigitte    'I never met a chocolate I didnt like'    Jellinek
http://www.horus.com/~bjelli/         http://perlwelt.horus.at

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://65914]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2018-02-19 02:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (258 votes). Check out past polls.

    Notices?