Posted by Justin Koivisto on 01/12/06 18:43
Syl wrote:
> I have a simple test html form at http://www.radiosport.ca/test/test.html
>
> It use the POST method to send a name to a php script that prints the input
> data in the $_POST array and from the raw input data
>
> <?php $data = $_POST['name']; print "\$_POST: $data"; $data =
> file_get_contents("php://input"); print "Raw Input: $data"; ?>
>
> And I have a test pdf form that uses a HTTP Submit button - it also calls
> the php script http://www.radiosport.ca/test/test.pdf
>
> Using 'Robert' as the test name the output from the test html form is
>
> $_POST: Robert
> Raw Input: name=Robert
>
> The Output from the test pdf form is
>
> $_POST:
> Raw Input:
> %00f%00o%00r%00m%001%00%5b%000%00%5d%00.%00%23%00s%00u%00b%00f%00o%00r%00m%0
> 0%5b%000%00%5d%00.%00n%00a%00m%00e%00%5b%000%00%5d=%00R%00o%00b%00e%00r%00t
>
> I thought the Adobe Form was suppose to send standard URL-encoded data using
> the POST method the same as the html form.
It depends on the options you chose for the submit button...
> Where have I made my mistake?
> Can someone point me to a PHP script that processes a pdf form?
http://koivi.com/fill-pdf-form-fields/
http://koivi.com/fill-pdf-form-fields/tutorial.php
--
Justin Koivisto, ZCE - justin@koivi.com
http://koivi.com
Navigation:
[Reply to this message]
|