Call PHP Function In JavaScript Using Ajax
how to call php function from javascript function 1. create Folder on WWW Or htdocs (on your computer) 2. create index.php page on your folder and paste this code index.php <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> <script> function addsearchproduct(x){ // this is JavaScript function $.ajax({ type: 'POST', url: "function.php?f=phpFunction&p="+x, // call php function , phpFunction=function Name , x= parameter data: {}, success: function(data1){ alert(data1); } }); } </script> <input type="button" value="call Php Function" onclick="...
Your link describing tutorial about wordpress theam development is very nice..
ReplyDeleteThis website truly has all the information I wanted concerning this
ReplyDeletesubject and didn't know who to ask.
Here is my page wordpress theme developer
Thanks for yours details. Yours facts effectively did it.
ReplyDeleteWordpress Development Bangalore | Joomla Developers Bangalore
Thank to everyone
ReplyDeleteThank to everyone
ReplyDelete