Jump to content

PDF form parser - to google docs


drizzdo

Recommended Posts

Hello,

 

I have been asked to create a PDF form to collect data about my company volunteer database. We have been specifically requested to use PDF so I cannot create an HTML form.

 

I created a PDF form in lifecycle, it is linked to a PHP parser which grabs the data and supposedly sends it to a database (I have no database at the moment so I am sending this to google form, I have tested it and it works if I open the PDF in IE.

 

My problem is when I open the PDF in acrobat, it connects to the parser but fails to send the data to the google form. Instead it loads the parser in acrobat, and then I cannot submit it.

 

Here is the PDF: http://www.paulgerhard.eu/volunteer_form_db.pdf

the parser: http://www.paulgerhard.eu/submit.php

 

code:

 

----------------------------------------------------------

 

<?php

$formURL = "https://spreadsheets.google.com/a/qf.org.qa/formResponse?hl=en_GB&formkey=dF9vNmgtR1pCa3gyd05PV1g3c054dVE6MQ&ifq";

 

?>

 

 

 

<?php

echo '<form action="' . $formURL . '" method="POST">';

 

 

echo ("<textarea name=entry.0.single wrap>$_POST[FirstName]</textarea><br/>");

echo ("<textarea name=entry.1.single wrap>$_POST[LastName]</textarea><br/>");

echo ("<textarea name=entry.2.single wrap>$_POST[interest]</textarea><br/>");

echo ("<textarea name=entry.3.single wrap>$_POST</textarea><br/>");

echo ("<textarea name=entry.4.single wrap>$_POST[Telephone]</textarea><br/>");

 

 

 

echo '<input type="submit" name="submit" value="Submit">';

echo '</form>';

?>

 

 

---------------------------

 

what am I doing wrong? I am not sure if this is a parser problem or an acrobat/lifecycle problem ( in which case I am sorry to post it in phpfreak and will go check at acrobat

 

thanks

Link to comment
https://forums.phpfreaks.com/topic/238543-pdf-form-parser-to-google-docs/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.