Hi,
I am going to try to explain what I am trying to do, so sorry about the long post.
I am creating a buyers guide that has one table for customer information and 300+ tables with product information. Some of the products tables have fields for id# and product name only, while other tables require up to five additional fields for product descriptions.
I can create a form “on the fly” for the different products, with checkboxes for the product names and textboxes for additional information.
So now I want to enter a customer into the databases. I can enter the company information into the table because I know what variable names I used and which ones are required.
$POST[‘name’] $POST[‘address’] $_POST[‘phone’]
For the product information I don’t know what they checked. It could be one item or all items. What I did originally was have the name and value the same for the check boxes so something like code below would give me the items checked.
foreach($_POST as $val){
if($val != "" && $val != "Submit"){
print "$val <br>\n";
}
}
When the product information was added as textboxes the above code gives me what the person entered into the textbox and I have no idea for which product.
I get lost when I have the $_POST value but don’t know what the name of the variable is.
Any ideas on how to do this?
Dan