Submit to Web; PHP

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • tealmad
    Indigo Rose Customer
    • Feb 2003
    • 29

    Submit to Web; PHP

    First of all, I would like to say that I am very impressed with SUF6.0. The application is extremely flexible for all of my needs. However, I have a question that I need answered and it has been eating at my brain:

    I am collecting information from my installers: Name & Email Address. I want to be able to submit the collected information to a PHP script that writes the information to a tect file on my site. When I wrote the script, it didn't work. The application ran, however, the text file was not updated with the information submitted. I did follow the information provided in the help file in SUF. My PHP script was as follows:

    <?php
    if (!$save = fopen("test.txt","a")) {
    exit;
    }
    fwrite($save,"$UserName\r\n");
    fwrite($save,"$UserEmail\r\n");
    fclose($save);
    ?>

    In SUF, my edit fields &amp; text stored in variables were as follows:
    Name: %UserName%
    Email Address: %UserEmail%

    My Parameters name for Submit to Web were as follows:

    USER EMAIL:
    Name: UserEmail
    Value: %UserEmail%

    USER NAME:
    Name: UserName
    Value: %UserName%

    Any thoughts on what I am doing wrong?

    Thanks,

    Gregg
    Gregg Payne
Working...
X