Hi,
I'm doing work for a client, and I stumbled on a problem. I could do this the old fashioned way of checking every from with it's own if else. But I would like PHP to check, if the form is empty it skips it but if it isn't it inserts it into the DB....
Here's an example
I have to mysql.tables, one is colors and one is products. Now the user fills in the product forms, and below those is about 7 differnt Text boxes for different colors. Of course I could do an if else statement for all 7 of those text boxes, but there has got to be an easier and more professional way to see if the box has anything, and if it does insert it into the mysql.colors. Thanks for any ideas / help.
Any ideas? If i'm confusing you sry, just ask and i'll try to explain.