Upload Form and Submit - Paypal

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

By design9 - September 9, 2014

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

By claire - September 9, 2014

Hi April

I think I'd need more info as to what you're looking to do here, but Paypal does provide HTML button templates in order to pay for services. Perhaps that's what you need instead?

https://www.paypal.com/us/cgi-bin/webscr?cmd=_singleitem-intro-outside

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

Claire Ryan
interactivetools.com

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

By design9 - September 10, 2014

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

By design9 - September 10, 2014

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!

By claire - September 10, 2014

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/

By design9 - September 11, 2014

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

By claire - September 11, 2014

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/

By design9 - September 12, 2014

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

By claire - September 12, 2014

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/