locked
Submit Button RRS feed

  • Question

  • I have created my form...it is an .htm, but the submit does not send to my email address.  when I hit the submit button, it clears the form of any text I have typed in.
    Monday, August 18, 2008 8:19 PM

Answers

All replies

  • Your form needs to have some code behind it (a 'form handler') that takes the form content and creates the email that gets sent to you.

    How have you created the form? Are you using the FrontPage Extensions?

    Ian

    http://www.ew-resource.co.uk
    http://www.fp-resource.co.uk


    Ian Haynes
    Monday, August 18, 2008 9:46 PM
  • Does your code look like <form action='mailto:someone@example.org'>? These technique simply does not work reliably.
    Monday, August 18, 2008 9:51 PM
  • What type of server do you have?  What development platform does it support?

    PHP Email Sample:
    http://www.veign.com/code-view.php?type=web&codeid=48

    --
    Chris Hanscom - Microsoft MVP
    Resource Center | Veign's Blog | Web Development Help
    Monday, August 18, 2008 9:53 PM
  • Christoph Schneegans said:

    Does your code look like <form action='mailto:someone@example.org'>? These technique simply does not work reliably.

    Hmm, I've never seen that one. That must have been before I started working with forms. How was that supposed to work, anyway? I mean, how did the form field values get formatted into a readable email format with name=value pairs? Is that an older form submission method for emailed forms, Christoph? Did it ever work reliably?

    I have to admit that I don't know much about the "mailto" directive. My experience is just that it launches the default email client with the address parameter as the To: field. I hate to illustrate my ignorance (which is vast ;-), but I didn't know that the mailto: directive had ever been used (or could be) as the action parameter of a form.

    cheers,
    scott


    Tuesday, August 19, 2008 5:43 AM
  •  The use of 'mailto' in forms went through a popular phase a few years ago and you still sometimes see it mentioned as a simple way to send form results. However it's not reliable because it depends on the user's email client and browser settings, which you have no control over.

    A proper form handing script of some sort is required.

    Ian

    http://www.ew-resource.co.uk/
    http://www.fp-resource.co.uk/


    Ian Haynes
    Tuesday, August 19, 2008 7:35 AM