You are here: Re: Basic PHP/HTML code question « PHP « IT news, forums, messages
Re: Basic PHP/HTML code question

Posted by Matthew Weier O'Phinney on 10/20/51 11:16

* Carlos Palomino <email@carlospalomino.com>:
> I have been trying to write or find a pre-written script of a
> combo-box which would allow one to select a category from one
> drop-down list, then be given related options within a secondary list
> before clicking a submit button. Is there anyone who knows where I
> can find this or an easy way to accomplish this in PHP?

PHP can generate the data for the drop-downs, but to do what you want to
do, you're going to need to use javascript (which operates at the
client, i.e. browser, level). Google for javascript solutions to this,
and I'm sure you'll have no problem finding something.

> Sorry if this is a basic question but I have only begun learning
> coding PHP so some items are foreign at this point. Thanks for your
> understanding and any assistance.

The trick is learning what falls in the realm of PHP, what falls under
the HTML/CSS umbrella, and what falls under the javascript umbrella.
Rule of thumb:

* If it's display related, it's HTML/CSS
* If it has to happen before a request is made, it's Javascript
* If it happens in response to a request, it's PHP

Good luck!

--
Matthew Weier O'Phinney | WEBSITES:
Webmaster and IT Specialist | http://www.garden.org
National Gardening Association | http://www.kidsgardening.com
802-863-5251 x156 | http://nationalgardenmonth.org
mailto:matthew@garden.org | http://vermontbotanical.org

 

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

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