abhinavsingh89 Posted April 21, 2010 Share Posted April 21, 2010 <select name="status" id="status" onchange="chng();"> <option selected="selected">Incomplete</option> <option>Delivered</option> Now when the value is changed i want to update some values in database... so basically want to call a function or you can say want to execute a piece of code of php when the delivered option is selected... Now i want to know how can i achieve this... Link to comment https://forums.phpfreaks.com/topic/199269-php-function-to-be-called-from-js-function/ Share on other sites More sharing options...
Mchl Posted April 21, 2010 Share Posted April 21, 2010 Do you know Ajax? Because you will need it here. Link to comment https://forums.phpfreaks.com/topic/199269-php-function-to-be-called-from-js-function/#findComment-1045908 Share on other sites More sharing options...
abhinavsingh89 Posted April 21, 2010 Author Share Posted April 21, 2010 no i dun... is there any other way?? Link to comment https://forums.phpfreaks.com/topic/199269-php-function-to-be-called-from-js-function/#findComment-1046012 Share on other sites More sharing options...
Ken2k7 Posted April 21, 2010 Share Posted April 21, 2010 no i dun... is there any other way?? Well, you can make it a Flash, Java or a C#/ASP.NET application. Otherwise, yes, you need AJAX. Link to comment https://forums.phpfreaks.com/topic/199269-php-function-to-be-called-from-js-function/#findComment-1046056 Share on other sites More sharing options...
seventheyejosh Posted April 21, 2010 Share Posted April 21, 2010 Which if you know Javascript, is easy as pie Link to comment https://forums.phpfreaks.com/topic/199269-php-function-to-be-called-from-js-function/#findComment-1046065 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.