Results 1 to 2 of 2

Thread: Forms - submit button

  1. #1
    Join Date
    Aug 2009
    Location
    London
    Posts
    93
    Thanks
    26
    Thanked 0 Times in 0 Posts

    Default Forms - submit button

    Hi,

    The form I have created (see below) currently opens up Thunderbird when you press the SUBMIT button.

    I would like it to by-pass a mail-client (Thunderbird etc) and send the message by itself, independently of the need to open up a mail-client.

    Can this be done easily? I look forward to your replies.

    HTML Code:
    <form id="comments_form" action="mailto:john@xyz123.com" method="get">
    
    <fieldset>
      <legend>Contact:</legend>
      <p>
      <label for="author">Name: <em class="required">(Required)</em></label>
      <input name="author" id="author" type="text" />
      </p>
      
      <p>
      <label for="email">Email Address: <em class="required">(Required)</em></label>
      <input name="email" id="email" type="text" />
      </p>
      
      <p>
      <label for="text">Message:</label>
      <textarea name="text" id="text" cols="20" rows="10"></textarea>
      </p>
      
      <div>
    <input type="submit" name="btnSubmit" id="btnSubmit" value="Submit" class="btn" />
    </div>
      
    </fieldset>
    
    </form>   
     </div>

  2. #2
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    with php or another server side language. The mailto opens the default mail application.
    Corrections to my coding/thoughts welcome.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •