LTA - 2014-06-23

Hello.

http://www.tcpdf.org/examples/example_054.phps shows how to submit form to printvars.php

But which data the script has to return ?

I try to return nothing:

< ? p h p
file_put_contents("./vars." . time() . ".json", json_encode($_POST));
return;
? >

I made a test on Acrobat Reader on a MacBook (so not in a browser) and I have this kind of message:

An error has occur. Impossible to deal with text/html data type.
(the original message is in french...)

May be I haven't got the good header ?

By the way, my json file has been created succesfully...

Regards

 

Last edit: LTA 2014-06-23