You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

You can implement simply code can get processed result by jQuery in javascript/HTML5

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>

<script>
var g_acode = "";
function sendAuthKey()
{
    var fd = new FormData();
    fd.append("name", "Chun Kang");
    jQuery.ajax({
        url: "/ajax.php",
        type: "post",
        data: fd,
        contentType: false,
        processData: false,
        async: false,
        success: function(response)
        {
            alert(response);
        }
    });
}
</script>


<?php

extract( $_POST);

echo "Hey {$name}, howdy?";

?>


  • No labels