GET ID and POST to a new page (serverside)

GET ID and POST to a new page (serverside)

dr6931dr6931 Posts: 1Questions: 0Answers: 0
edited September 2010 in General
Hello

I want to pass a ID to another page (PHP) with the method POST and not GET.
I try to do this with GET METHOD, but how with the POST method ???
Here is my code :
[code]
"fnDrawCallback": function ( oSettings )
{
$('#example tbody tr').each( function ()
{
var iPos = oTable.fnGetPosition( this );
$(this).click( function ()
{
// alert('ID:'+oSettings.aoData[iPos]._aData[0])
window.location = "whatever.php?id="+oSettings.aoData[iPos]._aData[0];
} );
} );
},
[/code]
Thanks

Replies

  • pktmpktm Posts: 27Questions: 0Answers: 0
    I don't know how to do this with the click handler, but you could set up a form in the cklickable cell, that has method="post".

    hth
This discussion has been closed.