Trying to process form data

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
doctaval
Forum Newbie
Posts: 2
Joined: Wed Jul 18, 2007 10:49 am

Trying to process form data

Post by doctaval »

I am new to php. I barely know any code and try to work from examples.

I have a form in a pdf file and I am trying to submit the form data to formmail.php which is hosted on my server. Adobe Acrobat submits the form data encoded as HTML. However, formmail complains that there is no action defined in the submission process. To get around this, i thought it would be a good idea to through one php file and use something like cHTTP to send it to the formmail.php.

Is this feasible? Would anyone have any advice on how to do this?

Thanks for any help.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

doctaval wrote:However, formmail complains that there is no action defined in the submission process.
What is the exact error message?
If you take look at formmailer.php can you identify the code block that is causing the message? Please post that code.
doctaval
Forum Newbie
Posts: 2
Joined: Wed Jul 18, 2007 10:49 am

Post by doctaval »

This error comes up when i submit through adobe acrobat.

Code: Select all

Error=The form has an internal error - no action or recipients were specified
It is to be expected because it doesnt let you define an action or recipient. I was thinking to get around to submit it to another php that would process and submit that form data to formmail. I saw that cHTTP can add fields and action method so I thought I was going down the right path, but I'm not too sure how to impliment it into the whole setup.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

You could adjust formmailer.php to assume default values. That's what your "new" script would do anyway.
Post Reply