You are here: Re: Modifying data in forms with values « PHP « IT news, forums, messages
Re: Modifying data in forms with values

Posted by Aaron Greenspan on 09/13/05 20:03

Robert,

The Lampshade framework (and I'm sure others, too) handles pretty much
all of the form controls for you. There' also a specific country()
function used to make a drop-down of countries. Using Lampshade, you
would only need one line of code in your form:

dropdownBox('country', country(), $myrow['country'], 'Country');

The first parameter is the name of the field in the form. The second
provides the list of items to display in the drop-down box. The third is
the present value of the box (so it handles the if statements you were
talking about), and the fourth is the label that shows up on the form on
the user's screen.

You should try it out, and I'd be happy to help you get set up.

http://www.thinkcomputer.com/software/lampshade/index.html

Aaron

Aaron Greenspan
President & CEO
Think Computer Corporation

http://www.thinkcomputer.com

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация