Im trying to send Ajax post to PHP.
This code works Ok:
$(document).on('keyup change',function(){
$.post("suma.php",{name: "oscar"},
function(data){
$('#Resultado').html(data);
}
);
});
PHP:
<?php
if( $_REQUEST["name"] )
{
$name = $_REQUEST['name'];
echo "Welcome ". $name;
}
?>
But the problem is, How can I send the value of two input class like this and calculate the sum in PHP?
<tr>
<td><input value="0" class="sum1"/></td>
<td><input value="0" class="sum2"/></td>
</tr>
Thank You in advance.