Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Form Email Help

Options
  • 20-05-2006 5:46pm
    #1
    Closed Accounts Posts: 48


    I'm using freeserves.com to host my website.
    I have a form built and am trying to get it's contents to send to my email address.
    freeservers.com allow you to use "/cgi-bin/cgiemail"

    Lets assume my email address is LivingDead@website.com. Here is the code I have:
    <form method ="post" action ="/cgi-bin/cgiemail">
    
    <input type="hidden" name="cgiemail_username" value="LivingDead@website.com">
    
    Name: <input tpye="text" name ="name" />
    <br />
    <br />
    E-Mail: <input tpye="text" name ="email" />
    <br />
    <br />
    Comments:
    <br />
    <textarea name="message" rows="10" cols="40">
    </textarea>
    <br />
    <input type ="submit" value="Send" />
    
    </form>
    

    Does anyone know why this isn't working? I guet the "success" message when I click the Submit button but nothing is getting emailed to me.


Comments

  • Registered Users Posts: 3,514 ✭✭✭Rollo Tamasi


    have you contacted your webhost about this? They would be the best suited to solve your problem, maybe they need to configure something for you.


  • Closed Accounts Posts: 48 LivingDead


    I'm using the free version. You have to pay to be able to contact them about help issues.


  • Registered Users Posts: 683 ✭✭✭Gosh


    Don't know about cgiemail but there are 2 problems in your HTML

    Name: <input tpye="text" name ="name" />

    E-Mail: <input tpye="text" name ="email" />

    tpye should be type - perhaps this is causing it to fail since you wouldn't be posting the name and email fields

    Are these the correct field names? the one with the email address is cgiemail_username


  • Closed Accounts Posts: 48 LivingDead


    Wow, I can't believe i had such a stupid spelling mistake. Ok, the code is now as following and it still does not email anything to me:
    <form method ="post" action ="/cgi-bin/cgiemail">
    
    <input type="hidden" name="cgiemail_username" value="LivingDead@website.com">
    
    Name: <input type="text" name ="name" />
    <br />
    <br />
    E-Mail: <input type="text" name ="email" />
    <br />
    <br />
    Comments:
    <br />
    <textarea name="message" rows="10" cols="40">
    </textarea>
    <br />
    <input type ="submit" value="Send" />
    
    </form>
    


  • Registered Users Posts: 683 ✭✭✭Gosh


    <input type="hidden" name="cgiemail_username" value="LivingDead@website.com">
    

    is the email address correct ??


  • Advertisement
  • Registered Users Posts: 14,003 ✭✭✭✭The Muppet


    Is the path to the cgi-bin correct ? Are you sure it's not cgi_bin ?


    If the path to cgi-bin is right try this.

    <form action="/cgi-bin/cgiemail method="post">


Advertisement