-1
This is the code of Ajax
$('#FormEs').submit(function(e){
    e.preventDefault();
    $.ajax({
        url: "VerificarPerson.php",
        type: "POST",
        dataType:"html",
        data: {
            'metodo': $('#metodo').val(),
            'idp': $('#idp').val(),
            'personName': $('#personName').val()
        }
    }).done(function(data){
        alert(data); // <------------------------------------------------
    });
});
and This is PHP
<?php
    if(strcasecmp('Teste', $_POST['metodo']) == 0){
        $html1 = $_POST['personName'];
        $html2 = $_POST['personName2'];
        echo $html1; /
  }
?>
Well I wanted to show the two variables like alert('html1') and then alert('html2') like this someone knows how?
Honestly, I used the PHP manual to see what this was
strcasecmp(), but your question is simple. : P– Inkeliz
I’m impressed, people are negative without at least trying to help or at least criticize what you’re wrong about.
– SCOFIELD
because it is a friend I signed up one day this time I knew that here at Stackoverflow I could ask for help more apparently some people do not understand this
– Leo Frost