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="...
Greetings! I've been following your site for some
ReplyDeletetime now and finally got the bravery to go ahead
and give you a shout out from Huffman Tx! Just wanted
to say keep up the fantastic work!
Look at my homepage :: Dr Dre Beats
I just could not leave your website prior to suggesting that I actually loved the standard information an individual
ReplyDeleteprovide in your visitors? Is gonna be back regularly to check up on new posts
my weblog: Burberry Silk Scarf
I really like it when folks come together and share ideas.
ReplyDeleteGreat website, keep it up!
Feel free to surf to my web-site - Cheap Beats By Dre;
Newsvine.com,
I am sure this paragraph has touched all the internet people, its really really fastidious paragraph on building up new web
ReplyDeletesite.
Feel free to surf to my blog post Beats By Dre Pro
I am extremely impressed with your writing skills and also with the layout on your blog.
ReplyDeleteIs this a paid theme or did you modify it yourself?
Anyway keep up the excellent quality writing, it is rare to
see a nice blog like this one today.
Here is my site :: Burberry Silk Scarf Outlet [cheapsilkscarf.blogspot.com]
Hello! I've been reading your blog for a while now and finally got the
ReplyDeletecourage to go ahead and give you a shout out from Lubbock Tx!
Just wanted to tell you keep up the fantastic work!
Here is my site Louis Vuitton Silk Scarf Replica