Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Generic Form thingy

by btrott (Parson)
on Mar 29, 2000 at 22:03 UTC ( #6438=note: print w/ replies, xml ) Need Help??


in reply to Generic Form thingy

Like the other posters, I'm not absolutely sure what you're asking. But I thought I'd just guess and ask: do you have multiple form inputs with the same name, and you want your script to recognize that? (Where currently the script would just be overwriting the previous values each time through the loop). If so, I really highly suggest using CGI.pm, as it handles this quite nicely.

If you must do it yourself, think about using a slightly different data structure. For example, have the values in your hash be array references instead of scalar values. Then in the array you can hold as many multiple values as you want.

On the whole, though, this may not have been what you were asking, and if it was, my first recommendation would be to use CGI.pm.


Comment on Re: Generic Form thingy

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2014-09-19 22:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (149 votes), past polls