Re: How to code in PHP an onchange event in a <select>?

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

 



At 7:58 AM -0700 11/5/10, Jim Lucas wrote:
On 11/4/2010 1:23 PM, Tomás Corrales Lemoine wrote:
 Hi, List,

 I have this two files ("index.php" and "include.php"). They both work fine,
 but I want to substitute the code for de onchange event in the <select> tag.
 Can I use PHP to code this event? How?

Looks to me that you are looking for "chained select boxes".  Doing a G search
for that and the first result is this:

If that is the case (the post was confusing to me), here's my solution:

http://php1.net/a/ajax-select/index.php

You simply use a PHP script (main) to set things up and then JavaScript (ajax) to run a slave PHP script.

All the code is there.

Cheers,

tedd

--
-------
http://sperling.com/

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