I want to pass two input data to PHP with JQuery ajax I read about json, serialize and similar but I couldn't quite get a grip around it. I got:
<p><input type="text" id="domain"></p>
<p><input type="text" id="domain1"></p>
<button id="order">Search</button>
<script type="text/javascript">
    function callAjax() {
        $.ajax({
            type:  "GET",
            cache: false,
            url:   'getip.php',
            data:  ???
    });
</script>
And also what do I need on PHP file because I only got this.
$name=($_GET['']);
$surname = 
echo($name) ;
endif;



$( document ).ready(function() { // code here });OR$(function() {//code here });callAjaxfunc