pdf with POST
| From: | Josep R. Raurell | Date: | Fri, 31 May 2002 07:01:27 +0000 |
| Subject: | pdf with POST | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-100056@lists.php.net to get a copy of this message | ||
Hello.
I do a pdf with a lot of variables from a form, with a GET method.
After make the pdf (in the same script) I sent the headers and the user can see the document in your browser:
$data = $albara->retorna();
$len=strlen($data);
header("Content-Type: application/pdf");
header("Content-Length: $len");
header("Content-Disposition: inline; filename=$fileName");
header("Pragma: no-cache");
header("Expires: 0");
print $data;
$albara->deleteDoc();
This work OK.
But I want use POST because there are so much variables in the URL, whit post the result is a blank scrren (the pdf never apears).
Somebody nows if is posible (with another headers or with other solution) to use a POST method to get a pdf made on the fly ?
Thanks.
Josep. R. Raurell