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 ?

You can't do this with PHP. PHP is server side which means it only reacts after a request has been made to the server (by loading a Web page or submitting a form, for example). For what you're trying to do, you'll need to use JavaScript, which is client side. You can use PHP to help create the JavaScript, though. There are some ready-made scripts available for this purpose (search Google).


Hope that helps,
Larry

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



Reply via email to