email button

admin

Administrator
Staff member
I have used a button from the javascript source that opens up an email client, writes a message into the subject line and writes the page title and link into the body of the email. That is pretty helpful, but I need the email to include the values of three fields - full name, student ID and Trainer, to go in the subject line. I also need it to include the values of the radio buttons on the page to go into the body of the email. As you can tell, I don't know much about this, so any help you could give me would be great. Thank you.

This is the code I used:

<div align="center">
<script language="JavaScript" src=http://www.webdeveloper.com/forum/archive/index.php/"EmailLink.js">
<!-- Original: Happy Smart -->
<!-- Web Site: <!-- m --><a class="postlink" href="http://happysmart.net">http://happysmart.net</a><!-- m --> -->
</script>
</div>

This was saved as a .js file:

function EmailLink(){
window.location = "mailto:"+"?subject=Activity 2" + "&body="+document.title+" "+window.location;
}
document.write('<INPUT class="select" TYPE="button" VALUE=http://www.webdeveloper.com/forum/archive/index.php/"Submit by Email" onClick="EmailLink()"></FORM>')
 
Back
Top