j5646w Posted September 25, 2011 Share Posted September 25, 2011 Good day, I new to PHP I am having problems with a two dropdowns on a form, can someone please tell me where I'm going wrong. [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/247817-php-mysql-dropdowns-with-onchange/ Share on other sites More sharing options...
freelance84 Posted September 25, 2011 Share Posted September 25, 2011 onchange is javascript. It looks like you are trying to call a php function from the clients computer. That's not going to happen. PHP can only be processed at the server. You could try and write some AJAX which could send a message back to the server instructing it to perform your php function, then return to the client with the contents of your <select> in the form of responsetext, but if you are new to php, I personally would recommend getting strong with html/css/js/php/mysql first. Then when you are, learn AJAX which meshes them all together. Quote Link to comment https://forums.phpfreaks.com/topic/247817-php-mysql-dropdowns-with-onchange/#findComment-1272550 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.