Jump to content

get select value using html and php


houssam_ballout

Recommended Posts

You can't run PHP like that onchange. That runs Javascript code, not PHP. If you want to use PHP to change something you will need to have Javascript use AJAX to send the request to PHP with the value of the element, PHP can do whatever it needs to do and return a result, and Javascript will need to get the result and update the page. Check the AJAX reference.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...