Hi,
I need transfer from resultados.php two values, to next check and run something.
Example code:

Code run when i clicked in button of form

var sData = 'name' + "gerardo" + '&password' + '123';

 $.ajax({
   type: "POST",
   url: '../resultados.php',
   data: sData,
   success: function(values){
        /*
         There i need check:
         if values[1] then{
            echo "all ok"
        } else{
            echo "error".
       } 
    */    
    }   
   });


-------8<---------------
resultados.php

<?php
    $a= $_POST["name"];
    $b=$_POST['password'];
    echo $a;
    echo $b;
?>

ThankĀ“s

Reply via email to