Skip to main content
Known Participant
May 3, 2010
Answered

Submit form from Script

  • May 3, 2010
  • 5 replies
  • 1036 views

Good day to everyone, I have a weird question.

I have a user Form that I would like to do the following:

     1.- Insert the form information to a database

     2.- Resubmit part of the form information to the PayPal website

So basically is a reservation for a tour, that i wish when the user is ready to fill out the form and when submit, create a component to insert the info to the database and imediately send the user to checkout on the PayPal website.

The question, can I resubmit or pass to the PayPal website via "_post" method all the necessary fields using a cfscript ??

Thanks for your help.

    This topic has been closed for replies.

    5 replies

    Inspiring
    May 4, 2010

    The question, can I resubmit or pass to the PayPal website via "_post" method all the necessary fields using a cfscript ??

    The answers given seem to overlook the "using cfscript" part.

    In CF9 the functionality of <cfhttp> is implemented in CFScript: http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSe9cbe5cf462523a0693d5dae123bcd28f6d-7ff8.html.

    --

    Adam

    pixculimAuthor
    Known Participant
    May 4, 2010

    Thanks Adam for the tip. Unfurtunately we are using Coldfusion 8 still. But this was a comprehensive and more oriented solution using cfscript.

    Thnaks again for the help.

    Sincerely,

    pixculimAuthor
    Known Participant
    May 3, 2010

    Thank you guys for your quick response.

    I appreciate it very much.

    Sincerely,

    ilssac
    Inspiring
    May 3, 2010

    Darn too slow.

    As the others said look that the <cfhttp...> tags.  These tags allow for your CFML application to make http requests to other servers.

    Inspiring
    May 3, 2010

    Take a look at the documentation for the CFHTTP tag.  This will allow you to post to paypal or another server from your CF code.