I need to use drupal_goto, but I need to pass some parameters using POST method.
Actually I use this code:
$url="someURL";
$params= array('query'=>array(
'n'=> $data,
'VerPedido'=>'back'
));
drupal_goto($url,$params);
This code redirect and pass params adding to URL, sample
http://XXXX/someURL?n=1&VerPedido=back
I need to pass this information using POST method, because I need to obtain this params at destination URL
I have readed this post but for do that I need to add html code at form_submit
I tried to add this:
$output="
<form action='someURL' method='post' name='frm'>
<input type='hidden' name='n' value='".$data."'>
<input type='hidden' name='VerPedido' value='back'>
</form>
<script language=\"JavaScript\">
document.frm.submit();
</script>";
return $output;
But beacause this code it's at mymodule_form_submit($form_id, $form_values) doesn't works