Upload Form and Submit - Paypal

17 posts by 2 authors in: Forums > CMS Builder
Last Post: September 12, 2014   (RSS)

I was wondering is there a way to make the upload forms go to a paypal page to pay for services upon submit? I know the forms use a pre save template id as the action on the form. 

Thanks!

April

Claire I figured out a different way to save the template id so I could redirect to paypal. The main issue I am having now is that I want to set up the form to go to a preview page where the user can preview and confirm data before submitting. Is there a way to do this so the data doesn't get submitted on the main page form  but get submitted on the the preview page?

Attachments:

testdir.php 14K

preview.php 14K

Yeah - just use a form on the first page to get the info, submit it to the preview page, and on that page you can display a summary to the user and load everything from the $_REQUEST array into a number of hidden fields in a new form with a button that says 'Accept' or whatever. Then when the user clicks that, that's when you submit it for real.

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

Claire Ryan
interactivetools.com

Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

That is what I thought I did with the examples I attached (I have other pages working except for main form page) but it still submits on the first form page. Can you look at that page (testdir.php) and tell me what I am doing wrong there?

Thanks!

You're submitting the initial form page to itself - you don't want to do this. When the user fills out the form, it needs to be submitted to the preview page in order to show a summary, but without a trigger that causes the real submit. Then when the user hits the real submit, the preview page submits to itself and includes the trigger that does the record storing stuff.

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

Claire Ryan
interactivetools.com

Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

How do I set it up without a trigger that causes the real submit

You need a hidden field somewhere on the preview page that isn't passed over from the initial page. When the preview page submits, you'd check for this hidden field before you actually add anything to the database. Hidden fields are pretty good for controlling forms like this.

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

Claire Ryan
interactivetools.com

Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Can you give me an example of what the hidden filed would look like on the preview page?

Any hidden field will do. It'll look something like

<input type="hidden" name="previewupdate" value="1" />

If you check for this in the form's real submission and don't include it on the initial pass to the preview page, then the preview page will show the summary without submitting the form. Then the user can submit the form for real on this page, because the submission includes the hidden field that triggers the real submission.

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

Claire Ryan
interactivetools.com

Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/