View Full Version : need help with javascript!
i've created a form and i need the contents to be e-mailed to me when the user clicks submit. how can i do this with javascript??
Please help!
rupika
You don't need javascript to email a form, you can use plain HTML:
<form action="mailto:JOESMITH@YAHOO.COM" method="post" enctype="text/plain">
<table width="80%" border="0" cellspacing="0" cellpadding="2">
<tr><td width="35%" align="right">Name: </td>
<td width="65%"><input type="text" name="name" size="15"></td></tr>
<tr><td width="35%" align="right">Email: </td>
<td width="65%"><input type="text" name="email" size="20"></td></tr>
<tr><td width="35%" align="right">Comment: </td>
<td width="65%"><textarea name="comment" cols="40" wrap="virtual" rows="10"></textarea></td></tr>
<tr><td width="35%"> </td>
<td width="65%"><input type="submit" name="Submit" value="Submit"><input type="reset" name="reset" value="Reset"></td></tr>
<tr><td width="35%"> </td><td width="65%"> </td></tr>
</table>
</form>
But you CAN use javascript to do it:
http://developer.irt.org/script/email.htm
Thanks for the help!
rupika
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.