Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.