Share PHP form select menu ver. 1.02
updated: 2006-02-12
In a lot of dynamic forms or content management sytems the form element "SELECT" is used frequently. If you use your PHP code inside the standard HTML element the code will be nearly unreadable. Adding extra options is not really fun. This small handy function will produce a select based on an associative array. Just define an array and call the function, that's all. Now XHTML valid!
Viewed 35189 times
Rating: