hi, yes i'm using php... but the data is sent so the server side has to use $_GET but what do I get?? $_GET"??????"]
I assume you want me to $data = json_decode( $_GET["?????"] ); * * *peter* On Mon, Jun 1, 2009 at 2:48 PM, geronimo3 <jeroom...@gmail.com> wrote: > > if you are using PHP then this function will probably help > > json_decode > > more information: > > http://www.php.net/manual/en/function.json-decode.php > > On Jun 1, 2:26 pm, Peter Marino <marino.pe...@gmail.com> wrote: > > Hi jQuery, > > > > I'm trying to learn the json and ajax > > I have with success sent data over to the server in json > > now my question is how does one process this data on the server side? > > > > client side: > > > > var data = > > { > > "member" : > > { > > "name" : "Donald Duck" > > }} > > > > $.ajax({ > > url: "http://localhost/test/gui/ajax_member.php", > > type: "GET", > > data: data, > > cache: false, > > dataType: "json", > > > > success: function(json){ > > alert( json["test"] ); > > > > }, > > > > error: function( XMLHttpRequest, textStatus, errorThrown ){ > > var t = "XMLHttpRequest: "+XMLHttpRequest+"\n"; > > t+= "textStatus: "+textStatus+"\n"; > > t+= "errorThrown: "+errorThrown+"\n"; > > alert( t ); > > } > > > > }); > > > > server side??? > > > > how do I get the name "Donald Duck" on the server side? > > > > -- > > Power Tumbling -http://www.powertumbling.dk > > OSG-Help -http://osghelp.com > -- Power Tumbling - http://www.powertumbling.dk OSG-Help - http://osghelp.com