variable declaration for multiple form fields -help
jeffrey neslen
jneslen at yahoo.com
Fri May 14 19:23:29 MDT 2004
Sorry this question might be pretty basic, but forgive
me since I am just a newby.
I have a form that has several fields (hundreds) and
each field has a unique name and even a variety of
input types including check boxes.
When I post these items to my php script I need to set
a unique variable for each form item by placing them
in a local variable or setting them to a default value
if the field is not passed like so...
if(isset($_POST['my_feild'])){
$my_feild_var = $_POST['my_feild'];
} else {
$my_feild_var = "";
}
now this would be very easy if I had one or two
fields, but I have hundreds and need to come up with a
solution. I know I could use a foreach loop to
generate an array[], but this would not produce the
unique names I need for variable declarations/setting.
Any ideas/solutions or alternatives to my conundrum?
Thanks in advance.
Jeff
www.pixeltenchi.com
jneslen at yahoo.com
__________________________________
Do you Yahoo!?
SBC Yahoo! - Internet access at a great low price.
http://promo.yahoo.com/sbc/
More information about the UPHPU
mailing list