php - login session with ajax and php

0

I'm having a login problem with php and ajax. I have registered a user and password in the database with columns:

PROBLEMTHATALWAYSAPPEARS=USERSANDWRONGPENNIES...ANDICANNOTSEEWHEREIERRED,THEBANK'SINFORMATIONISSURE.IAMMAKINGALLLOCAL..IFYOUCANHELPME,THANKYOUVERYMUCH

asked by anonymous 20.10.2018 / 22:34

1 answer

0

It should be returning the data as GET. Try the following:

$.ajax({        
                        url:"login.php",            //Arquivo php
                        type:"post",                //Método de envio
                        data: "login="+login+"&senha="+senha,   //Dados
    
21.10.2018 / 10:04