Re: [PHP] onChange

This is a discussion on Re: [PHP] onChange within the PHP General forums, part of the PHP Programming Forums category; [snip] I have 2 list fields in a form. The second is populated basing on selection in field 1. Can ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-22-2003
Matt Matijevich
 
Posts: n/a
Default Re: [PHP] onChange

[snip]
I have 2 list fields in a form. The second is populated basing on
selection in field 1. Can anyone pls tell me how to do this in PHP ?
[/snip]

you can't, onchange is fired with javascript on the client. You have a
number of ways you can do it a few are.
1. have on change submit the form to a php page, grab the form variable
from the first drop down and build the second select box.
2. if the data set is small, output it all to the page as javascript
arrays, then onchange, rebuild the second drop down box.
3. take a look at
http://developer.apple.com/internet/...pt/iframe.html

these are just a few options.
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:29 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0