faqts : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

9 of 19 people (47%) answered Yes
Recently 4 of 10 people (40%) answered Yes

Entry

Is it possible to use PHP code in the onChange feature of the html select tag? If so, how?

Mar 20th, 2008 17:18
ha mo, Paul Coldrey, Bruce Gordon,


No (and maybe Yes). onChange is handled in the browser and so it only 
supports JavaScript (and maybe VBScript for M$ browsers). Having said 
that you may be able to acheive what you want using JavaScript and get 
some results from PHP using the XMLHttpRequest object.
http://www.tantofa.com
http://www.fantofa.com
http://www.mantofa.com
http://www.tanpola.com
http://www.tampola.com
http://www.yamot.com
http://www.mozmar.com
http://www.templatestemp.com