Jump to content

php and javascript question


corillo181

Recommended Posts

sorry i know is should be asking anything related with javascript in the javascript section, but the guru of that topic don't be there and is just a quick question.

 

 

is there any way that i can make a block of php code execute with java script?

 

like

 

<script type="text/javascript">
function testSelect(form) {
var Item = form.year.selectedIndex;
var Result = form.year.options[item].text;
if(Result==d.getFullYear()){

php code here

}
}
</script>


Link to comment
https://forums.phpfreaks.com/topic/55906-php-and-javascript-question/
Share on other sites

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.