Tiffany Brown's Blog: Turn text files into pull down menus

Courtesy PHPDeveloper.org  Wed, 02/27/2008 - 09:35

Tiffany Brown shares a quick function she whipped up to create dropdown menus from the contents of a newline separated text file (or files).

I developed this PHP function for a project I'm working on. I'm posting it here in case I need it again, or in case you find it handy.

The function turns each line into an option tag making defining custom menus based on the contents of dynamically-given text...

Sponsors


 

Related items

Tiffany Brown's Blog: Debugging tip: "Disallowed Key Character" ...
CodeIgniter fans might want to take note of this tip from Tiffany Brown concerning "disallowed key character" error messages. After 6 hours of...

Site News: Blast from the Past - One Year Ago in PHP
Here's what was popular in the PHP community one year ago today:Community News: Open Source Golden Rules Richard Davey's Blog: A Guide to using CVS...


 

Post new comment

The content of this field is kept private and will not be shown publicly.
computer-internet.marc8.com