GET ID and POST to a new page (serverside)
GET ID and POST to a new page (serverside)
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
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
This discussion has been closed.
Replies
hth