you where nearly there formdata is a jQuery object if you want in html contents of that object try... formdata = $('div#htm_snippet').html();
/James On Oct 28, 10:24 am, Moody <[EMAIL PROTECTED]> wrote: > So here's what I'd like to do: > > on form submission, send some data from a form input and also a > snippet of html to a php script for further processing... > > so far I have something like: > > formdata = $('div#htm_snippet'); > > $('form').submit(function(){ > $.post(url, {snippet: formdata}, function(data){ > $('body').append(data); > }); > > My php script at the moment just reads the $_POST variable and spits > it back out, but all it returns is > [object Object] > > so where am I going wrong? > > --thanks --