You are here: Re: Abode Forms and PHP Script « PHP Programming Language « IT news, forums, messages
Re: Abode Forms and PHP Script

Posted by Justin Koivisto on 09/27/21 11:37

[top posting fixed]

Jim Michaels wrote:
>
> "Syl" <jkatz@sk.sympatico.ca> wrote in message
> news:11sd1l1h99itp0e@corp.supernews.com...
>> 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.
>>
>> Where have I made my mistake?
>> Can someone point me to a PHP script that processes a pdf form?
>>
> what you are going to get from $_POST is PHP's serialized string version of
> an array. $_POST is an array. if you read between the %00's, it reads as
> follows:
>
> form1[0].#subform[0].name[0]=Robert
>
> (and BTW, POST is just all the form data serialized from the browser thru
> HTTP and read into STDIN in C - like typing at the keyboard almost)

Sure doesn't look like a serialized array to me, and if that is the
posted data, then php doesn't have anything to do with it...

However, if you use the following, you can come up with what was found
above:

echo rawurldecode(str_replace('%00','',($post)));

Simply using rawurldecode produces what looks like a binary string. Was
this PDF made using Adobe Designer?

--
Justin Koivisto, ZCE - justin@koivi.com
http://koivi.com

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация