Friday, 15 February 2013

Pass multiple parameters of one form to multiple php files using single jquery ajax method -


How can one convert a value of the same file as a file using a single jquery AJAX method?

You can simply add another PHP file by adding it at the top of the page:

Include
  ("second page .php");  

Then, just call AJAX your page. The second will also get the same value

like this:


First page. Php: Include

  ("Secondpage.php") if the item (isset ($ _ POST ['myData'])) {// $ $ _POST with stuff [ MyData ']}  

Second page. Php:

  if you do more stuff with (isset ($ _ POST ['myData'])) {// $ _POST [[myData ']}  

HTML Page

Var sendVars = 'myData = Cool stuff'; $ .aax ({type: "post", url: "first page .php", data: senders, success: function (rttdata) {}}); });

No comments:

Post a Comment