News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Tiffany Brown's Blog:
Turn text files into pull down menus
February 27, 2008 @ 09:35:00

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 files easy.

This could also be easily adapted to create navigations menus at the top of your pages with a few modifications to the HTML tags being used and some CSS to change the look of the list.

0 comments voice your opinion now!
text file dropdown menu form element navigation css


blog comments powered by Disqus

Similar Posts

Kae Verens' Blog: multiple file uploads using HTML5

InformBank.com: How to create Microsoft Office documents on the fly using PHP

IBM developerWorks: Use Ajax with PHP and DB2 9 - Xajax

DZone.com: File Path Injection in PHP <= 5.3.6 File Update (CVE 2011-2202)

Rob Allen's Blog: Local config files and Zend_Application


Community Events





Don't see your event here?
Let us know!


code developer series symfony interview bugfix framework laravel list development language deployment introduction release api conference podcast zendserver tips community

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework