News Feed
Jobs Feed
Sections

Recent Jobs

News Archive
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



Similar Posts

Joshua Eichorn\'s Blog: PHP AJAX File Upload Progress Meter Updates

Symfony Blog: Security must be taken seriously

MelonFire Community: Caching Web Sites With PEAR Cache

Ed Finkler's Blog: So what is the state of secure development in PHP?

Demian Turner's Blog: Seagull 0.6.4 Release (fixes Security Isse from 0.6.3)


Community Events







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


security zendframework application code ajax developer conference zend framework PEAR release package database cakephp job releases book PHP5 example mysql

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