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] 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. 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
Archived
This topic is now archived and is closed to further replies.