+ Reply to Thread
Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 21

Thread: POST form data as well as email

  1. #1
    Join Date
    Jan 2004
    Posts
    15

    Default

    I need to submit a form to worldpay who require that a hidden field is included which contains a secure*code.

    Can formmail be modified to add a data pair (field name and secure code) and POST the form results*to a url? i.e. imitate the form action POST in a form.* I'd also like to email the results as well.

    The url that normally goes in the formaction is in the format *https://worldpay/xxxxxxxxx

    Seeing that formmail can forward data to a file on a web server I'm hopeful you can help.

    If so, who could/would do it? Do youn have some code I can work from?

    Having tested formmail - which has some excellent features (especially the email masking!)- I'm going to use it instead of the usual formmail.cgi that I've used up to now.

    Thanks in advance

    zippy

  2. #2
    Join Date
    Dec 2003
    Posts
    3,901

    Default

    Hi Zippy,

    There are two issues here:
    1. Can your web server's PHP installation send to a HTTPS? [/*]
    2. Can we change FormMail to add this new feature?[/*]
    The answer to #2 is: yes.* It will take a few days to get it done.

    To find*the answer to #1, use the following script on your server:

    Code:
    <?php phpinfo(); ?>*
    If your PHP version is 4.3.0 or later, look for the "Configure Command" section.

    If it says somewhere "--with-openssl", then you can open https URLS with PHP. Here's a script you can run to test with our secure server:

    Code:
    <?php
    $fp = fopen("https://secure31.vosn.net/~tectite","r") || die("open failed");
    echo "Open OK";
    ?>
    If not, then you'll need to get your hosting provider to reconfigure PHP for you or contact worldpay for a different solution.

  3. #3
    Join Date
    Jan 2004
    Posts
    15

    Default

    thanks for your prompt reply.

    1 - php version is 4.1.2

    2 - response to the php code is:

    "Warning: fopen("https://secure31.vosn.net/~tectite", "r") - No such file or directory in /home/tonylovett/public_html/scripts/test2.php on line 2 open failed"

    so I will need to speak to my ISP.

    From your comments it sounds as though you are adding this function anyway - am I correct?If so. and if the ISP will*re-configure php, when do you think I will be able to implement it?

    Thanks

  4. #4
    Join Date
    Dec 2003
    Posts
    3,901

    Default

    Hi Zippy,

    It should be ready in the next couple of days.

    Please let me know your hosting provider's response.

    *

  5. #5
    Join Date
    Jan 2004
    Posts
    15

    Default

    I have emailed their tech support.

    Given the older version of php and my lack of knowledge of php, is the configuration change that the ISP has to make done via a control panel of some sort or does it require a re-compile?* In short, what are the chances of getting them to make the change?

    Cheers

  6. #6
    Join Date
    Dec 2003
    Posts
    3,901

    Default

    Hi Zippy,

    Given the older version of php and my lack of knowledge of php, is the configuration change that the ISP has to make done via a control panel of some sort or does it require a re-compile? In short, what are the chances of getting them to make the change?
    It's a recompile of PHP: I'd say your chances are small.

    I've been thinking about your problem, and we actually have a solution on our drawing board: a filter program for FormMail which performs the SSL connection (i.e. HTTPS) on behalf of FormMail.

    What server type do you have?* Linux, FreeBSD, or Windows?

    We can produce*a Linux version faster than any of the others.

    One other issue: the filter programs we'll be publishing for FormMail are not free of charge.* There's a small cost involved (< US$20).

    Let me know if you're happy to go this way, and we'll increase the priority of this solution.

    Also, please let me know what timeframe you require (days, weeks, etc.)

    *

    *

  7. #7
    Join Date
    Jan 2004
    Posts
    15

    Default

    The web site won't be operational for a week or*two but the need to get the core process working is this week.
    $20 is not an issue.
    *
    Operating system
    RedHat linux 7.3
    Web server
    Apache 1.3.27
    Scripting language
    PHP 4.1.2
    Scripting language
    SunONE ASP 3.6.2
    CGI Scripting language
    Perl 5.6.1
    Database server
    MySQL 3.23.56
    Mail server
    Exim 3.36

  8. #8
    Join Date
    Dec 2003
    Posts
    3,901

    Default

    Hi Zippy,

    The shortest time it would take us to complete the filter program is two weeks (it's a C/C++ program that requires the SSL*library).

    The quickest solution is for your hosting provider to upgrade the PHP configuration.* The change to FormMail to support the HTTP POST will take about 1 day.


  9. #9
    Join Date
    Jan 2004
    Posts
    15

    Default

    Let's see what our ISP comes up with.

    What do you mean by a 'filter'?

    Whatever the solution is I'll need to test it - how easy/hard would it be for me to install php on my local NT server that runs IIS and perl?

  10. #10
    Join Date
    Dec 2003
    Posts
    3,901

    Default

    Hi Zippy,

    It should be pretty simple.* Here's the web page that will get you started:

    http://www.php.net/manual/en/install.windows.php

    By "filter" we mean a program that is designed to process the data from FormMail before that data is emailed to you.

    Typically, we use a encryption program:

    FORM -> FORMMAIL -> EMAIL
    ***********^
    ***********|
    ********** v
    ********ENCRYPT

    The ENCRYPT program is a "filter".* FormMail allows you to plug in any filter program you want, and so we're suggesting a filter program that happens to send the data off to World Pay for you.

    I hope that clarifies my previous posts.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Sending form results in an HTML email
    By russellr in forum HOWTO Guides and Tips
    Replies: 26
    Last Post: 12-Jan-2006, 09:31 PM
  2. Form Submitted, Redirected, but no email
    By jodmcc in forum FormMail Subscription Support
    Replies: 1
    Last Post: 16-Jun-2004, 12:14 AM
  3. autoresponder to email from form
    By rebirth in forum FormMail Subscription Support
    Replies: 2
    Last Post: 21-Jan-2004, 05:43 AM
  4. not seeing form data
    By brownie in forum FormMail Subscription Support
    Replies: 6
    Last Post: 19-Jan-2004, 02:37 AM
  5. Help trying to set up a form to email and send info to file
    By rridsdale in forum FormMail Subscription Support
    Replies: 1
    Last Post: 14-Jan-2004, 03:38 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts