I have updated the ajax, but still passing nothing, I am getting crazy, please some one help me out here. It must be working :(
function ajaxFunction(gotid){
alert (gotid)
$.ajax({
type: "POST",
url: "profile/php/getorder.php",
data: {
dataString: gotid
},
success: function(msg){
alert( "Data Saved: " + msg );
}
});
}
and the PHP
<?php
$ordid = $_POST["dataString"];
$ordid = mysql_real_escape_string($ordid);
echo $ordid;
?>
why cant see the alert( "Data Saved: " + msg ); ? Help :(