[HTML + PHP] Formmail isn't doing things correctly

Discussion in 'Web Design & Coding' started by zapoqx, Oct 28, 2010.

  1. zapoqx

    zapoqx Striking Master

    AZ, USA
    I've been helping someone redo his entire form submission so that it didn't use a cgi method of submission and instead use a PHP method.
    First part:
    The guide for setting up can be found here:
    DT Scripts: Form to email Guide Documentation

    Second Part:
    The download can be found here:
    DT Scripts: Viewing Source for formmail_code/formmail.x.phps

    I've been trying to use the "redirect" method in the html file. The problem is that no matter what happens, instead of redirecting to the html file that I specify through the use of:
    <input type="hidden" name="redirect" value="thanks.htm">
    Instead, it uses the else method of the redirect in the php field by saying "Thank you for your submission"
    On top of that, in the e-mail, unless I misunderstood something, the following codes:
    <input type="hidden" name="ar_file" value="/php/autoresponder.txt">
    <input type="hidden" name="ar_subject" value="Thank you for your interest!">
    Seem to come inside the e-mail of the form recipient (aka the site host specified in the code) and doesn't even try to come to the user's defined e-mail. Instead, in the e-mail to the form recipient, they get no e-mail address for the "from" and they get this appearing in their e-mail at the top:
    This is before the proper values appear in the e-mail.

    Is there something I might be doing wrong?

    Thanks in advance.