Build Your Own Arcade Controls Forum

Main => Everything Else => Topic started by: USSEnterprise on August 15, 2006, 11:22:01 am

Title: HTML "Form to Email" Question
Post by: USSEnterprise on August 15, 2006, 11:22:01 am
I'm trying to create a short survey for a site I'm building. I'm using radio buttons for the answers to questions. Now, at the end of the survey, I have a "submit" button. What I want that button to do is send an email to a preset address with the form data in the body. I have already tried the "mailto" command, but the problem with that is it opens the mail client first. I want it to send the email as soon as the "submit" button is hit. Is this possible?
Title: Re: HTML "Form to Email" Question
Post by: MikeDeuce on August 15, 2006, 01:28:03 pm
Assuming you're using a form like this:

http://www.htmlgoodies.com/tutorials/forms/article.php/3479121

It's always going to try to launch the user's email client... since it's relying on the user's email client to send the form data. If your web host supports it, you're better off looking into how to do this using CGI, or some other modern method.