I want design a login form via PHP + JQuery Ajax.
I have 2 textbox :
- txtbox1
id="kadiID" - txtbox2
id="sifreID"
and button :
id="btnGiris"
My buttons JQuery code is:
$('#btnGiris').on("click", function(){ var kullaniciID=$("#kadiID").val(); var sifreID=$("#sifreID").val(); var cpthcID=''; if($('#kontrolID').length){ cpthcID=$('#kontrolID').val(); alert("cpthc: [" + cpthcID + "]"); } $.ajax({ type : "GET", url :'giris.php', data:({ kadi : kullaniciID, sifre : sifreID, cpthc : cpthcID }), cache:false, beforeSend :function() { // other codes }, success :function(donen_veri){ alert(donen_veri); }, complete:function() { // other code }, }) return false; }) When I click button, my send datas from javascript are not process in giris.php file. Also I opened development tool via F12 and open network tab then I click button I saw a url like this:
Datas which I send via ajax data field are apear in url:
How can I solve this.

type : "POST",but without the php we won't know.