Passing multiple parameters with $.ajax url

I am facing problem in passing parrameters with ajax url.I think error is in parametters code syntax.Plz help.

    var timestamp = null;
function waitformsg(id,name) {

       success:function(data) {


I am accessing these parameters as follows


  $uid =$_GET['uid'];



Why are you combining GET and POST? Use one or the other.

    type: 'post',
    data: {
        timestamp: timestamp,
        uid: uid


$uid =$_POST['uid'];

Or, just format your request properly (you're missing the ampersands for the get parameters).


why not just pass an data an object with your key/value pairs then you don't have to worry about encoding

    type: "Post",
    url: "getdata.php",
       timestamp: timestamp,
       uid: id,
       uname: name
    async: true,
    cache: false,
    success: function(data) {


Need Your Help

Confused by Microsoft WebSockets namespaces

.net wcf html5 websocket

So far, in tutorials, blogs, and official documentation, I've seen:

Return to readline version 6.x in Homebrew to fix Postgresql?

postgresql homebrew readline

I'm no Homebrew expert but I think it has "upgraded" me from readline version 6.x to 7.0 sometime after 9/15/16: