jQuery kullanarak php javascript veri geçirmeden

0 Cevap php

Maybe this question has been asked before but I am struggling in doing this. I have got a php file which does not include any piece of php code (might be in the future),it includes just javascript and some html. What I want to do is clicking a button in this php file to send some amount of data to another php file. put it this way..

1-Ben A.php ve bir düğmeye bir saveProfile fonksiyonunu var bu işlevi çağırıyor

  function  saveProfile (){  
      var variableD = 'sample data';
      $.post("dbConn.php", { js: variableD});
  }

2-Bir veri tabanı tablosunda ve mağazalar alır dbConn.php denir başka php var.

I have found so many examples. I have applied them but it still does not work and is driving me nuts. I am a java programmer but new in php. Any help is appreciated.give me some clean sample code or if you see any mistake please kindly warn me. Thanks to all in advance...

Regards. Ozlem.

0 Cevap