Jquery AJAX post to PHP

This should do it:

...
$.ajax({
    type: "POST",
    url: "order.php",
    data: { 'dataString': dataString },
    cache: false,
    success: function()
        {
            alert("Order Submitted");
        }
    });

You may try to verify:

<?php
    $stringData = $_POST['dataString']; 
    echo $stringData;
?>

Leave a Comment