Skip navigation
atze0414
Currently Being Moderated

Submitting a form to text field email

Aug 8, 2012 9:42 AM

Tags: #forms

Hi Everyone,

 

I am working on a website and was wondering I can imitate one of those forms where you can send a friend an email. I need the form to utilize the email that a person would put in the text field and then send a copy of the form to that address. Any help would be appreciated!

 
Replies
  • Currently Being Moderated
    Aug 8, 2012 12:50 PM   in reply to atze0414

    <SCRIPT language='javascript'>

    <!--

    function jsMailThisUrl()

    {

        var email_subject = 'Check out this web page I found...';

        var email_body = 'Short description of this page';

        var page_url = window.self.location.href.split( '?' )[0];

        page_url = page_url + '?source=email_friend';

        var field = document.email_friend_script.address;

        window.location = 'mailto:' + field.value + '?subject=' +

            escape( email_subject ) + '&body=' +

            escape( document.title + ': ' + email_body + ': ' + page_url );

    }

    //-->

    </SCRIPT>

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 8, 2012 2:50 PM   in reply to atze0414

    It's Javascript, not Java (two very different animals)

     

    This is a crude standalone script for your visitor to send a link to a "friend"

    No connection with your form which sends fom entries  to mailto melinda.cronin@unco.edu

     

    It can be pasted in the document flow on any web page wherever you want its send button and text entry box to appear

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points