Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Jun 2005
    Posts
    33
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Form to write an email to specified input

    I hope this makes sense, but I need something that sounds very simple, but for some reason I can't easily figure out.

    I want a form with a text input field and a button.
    The site visitor types in a friend's email address, and clicks the button.
    Their email client opens up a new email message email window, with the friend's email address already filled in, along with the subject and message.
    All the visitor has to do now is click the send button.

    I'm really not sure if javascript is even required for this task, but either way, I can't figure out how to make it work.

  • #2
    Registered User
    Join Date
    Oct 2004
    Posts
    592
    Thanks
    0
    Thanked 1 Time in 1 Post
    Why don't you use form action="mailto:...." ?

    For example,
    Code:
    
    <form action="mailto:mylinkdirectory@gmail.com?subject=Form Submission" method="post" enctype="text/plain">
    <table width="676"><tr><td width="670" align="center">
    Category: <INPUT NAME="Category" TYPE="text" SIZE=20><BR>
    Site Title: <INPUT NAME="Site Title" TYPE="text" SIZE=20><BR>
    URL: <INPUT NAME="URL" TYPE="text" VALUE="http://" SIZE=20><BR>
    E-Mail: <INPUT NAME="E-Mail" TYPE="text" SIZE=20><BR>
    Site Description: <INPUT NAME="Site Description" TYPE="text" SIZE=20><BR>
    Reciprocal Link:&nbsp;&nbsp;
    Yes: <INPUT NAME="Yes" TYPE="checkbox" value="ON">&nbsp;&nbsp;
    No: <INPUT NAME="No" TYPE="checkbox" value="ON"><BR>
    Reciprocal Link Page: <INPUT NAME="Reciprocal Link Page" TYPE="text" VALUE="http://" SIZE=20><BR>
    
    </td></tr>
    <tr><td align=center width="670">
    <INPUT TYPE="submit" value="Add Site" style="color: #ffffff; background-color: #000000">
    </td></tr></table>
    </FORM><p></p>
    That's it. I think it's better to skip JavaScript for this task.

  • #3
    New Coder
    Join Date
    Jul 2005
    Posts
    67
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Code deleted. The constant harrassment here isn't worth my time.
    Last edited by Johnny Lang; 08-12-2005 at 09:44 PM.

  • #4
    New Coder
    Join Date
    Jun 2005
    Posts
    33
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Got it. Thanks Johnny Lang.
    Last edited by lessdangerous; 08-16-2005 at 03:06 AM.


  •  

    Posting Permissions

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