Help with formmail code please

Discussion in 'Programming' started by Deemac, Oct 5, 2008.

  1. #1
    Can you help me with the attached formmail code please.

    I have tried but this is just not mailing the info back to me.

    The objective is to receive the customers name and telephone number and once they have submitted the info and pressed enter to be re-directed back the the index page (and have the info e-mailed to my address).

    I have placed the code below from the HTML page.

    I have also set permissions to 755.

    Thanks in advance for your help.

    <form class="webform" action="http://www.mywebsite.co.uk/cgi-
    bin/formmail/iopost.pl" method="post">
    <input type="hidden" name="recipient" value="info@mywebsite.co.uk" />
    <input type="hidden" name="subject" value="***Information Request***"
    />
    <input type="hidden" name="redirect" value="http://www.mywebsite.co.
    uk/index.html" />
    <input type="hidden" name="env_report" value="REMOTE_HOST,
    HTTP_USER_AGENT" />
    <label>Name please:</label>
    <br />
    <input name="name" class="formname" type="text" size="31" maxlength="
    50" />
    <div id="spacer">&nbsp;</div>
    <label>Telephone number please:</label><br />
    <input name="telnumber" class="formnumber" type="text" size="31"
    maxlength="50" />
    <div id="spacer">&nbsp;</div>
    <input name="enter" type="button" value="enter" />
    </form>
     
    Deemac, Oct 5, 2008 IP