Madproject

Always know where your towel is.

Month: January 2011

Generating HTML select with PHP foreach

I’m currently programming the update part of a simple CRUD user interface. This form loads up data relating to a product we’ve previously entered and lets you update its attributes. One of the fields required a dropdown box with a selection of available options with the current selected options being the first default selection. While I know this isn’t rocket…