Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
The fields are: fname1, lname1, phone1, add1, email1, fname2, lname2...
There is 5 of each (fname1 - fname5). I could use if(param("fname1") ... if(param("fname2").. but to me, that's enough repititious code to know there's a better way.
It gets a little tougher. I need to make sure at LEAST the phone# or the email# was filled out. Doesn't matter if both are but at least one must be.
Can someone come up with a one-pass way to go about doing this?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: retrieving similar form params
by GrandFather (Saint) on Nov 27, 2005 at 23:15 UTC | |
by Anonymous Monk on Nov 27, 2005 at 23:24 UTC | |
by GrandFather (Saint) on Nov 27, 2005 at 23:57 UTC | |
by GrandFather (Saint) on Nov 27, 2005 at 23:35 UTC | |
by Anonymous Monk on Nov 27, 2005 at 23:43 UTC | |
by Anonymous Monk on Nov 27, 2005 at 23:27 UTC | |
|
Re: retrieving similar form params
by sulfericacid (Deacon) on Nov 28, 2005 at 00:03 UTC | |
|
Re: retrieving similar form params
by kulls (Hermit) on Nov 28, 2005 at 08:56 UTC |