Re: Basic PHP/HTML code question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Carlos Palomino <email@xxxxxxxxxxxxxxxxxx>:
> 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@xxxxxxxxxx         | http://vermontbotanical.org

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux