37 users online (0 members and 37 guests)  


  Results 1 to 2 of 2

Related

  1. Replies: 9
  2. Replies: 3
  3. .htaccess doesn't work    Forum: HTML Forum
    Replies: 1
  4. js script that doesn't work ???    Forum: Javascript Forum
    Replies: 1
  5. form submit button    Forum: HTML Forum
    Replies: 1
  1. #1
    caralynch's Avatar
    New User

    Status
    Offline
    Join Date
    Jul 2003
    Location
    England
    Posts
    1

    Submit button on form doesn't work - why?

    I have a form on my website (www.uktripplanner.com). The form has been created, I don't need help regarding how to design a form or an actual submit button.
    I simply need a code which will send the information on my form to my email address.
    I am a complete amateur, so don't understand the jargon on other people's messages; that's why I'm asking for help myself.
    All I need is a code, and to be told where to put it. I am using Dreamweaver, so can I just 'stick it in' when the page is in "code view"?
    Please help, as no one I have asked has a clue, and it can't be that complicated, can it?
    Thanks!

  2. #2
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Hiya,

    It seems complicated sometimes, but its not.

    There are basically two ways to send a form via email. One is to have

    Code:
    <form action="mailto:my@email.com">
    This seems easy, but it does not work. You might eventually get it to work for you, but for all your other visitors it will not work.

    The best method is to submit your form to a server-side script. All this means is that your form goes to a page that is capable of using the servers email to send your email, and act as an interface between the web and the server.

    The easiest was is to use your hosts sendmail script. If your host has one (most do) then they should also have documentation in their support pages telling you how to submit to it.

    If your host supports a server-side language called PHP then I have a mailer script somewhere you can use if the sendmail does not work for you.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?



Tags for this Thread