HI Ramanan,
Would you please give me some reference or example of how you do it?
This is an Example. But here all the form variable will be submitted.
[HTML]<html>
<body>
<h3>This form sends an e-mail to the user you specified in the Action</h3>
<form id="thisForm" method="post" enctype="text/plain">
Name:<br />
<input type="text" name="name"
value="yourname" size="20" />
<br />
Mail:<br />
<input type="text" name="mail"
value="yourmail" size="20" />
<br />
Comment:<br />
<input type="text" name="comment"
value="yourcomment" size="40" />
<br /><br />
<input type="Button" value="Mail" onclick="mailMe()"/>
<input type="reset" value="Reset" />
</form>
</body>
</html>
<script type="text/javascript">
function mailMe()
{
// alert("Inside Mail");
var myForm = document.getElementById('thisForm');
myForm.action="MAILTO:****@excelacom.in";
myForm.submit();
}
</script>[/HTML]
You can achieve this in another way also. Have two forms within the same page. In one form you put your all input elements. In the other form just have an input hidden field, when the form is subitted collect all the values in the form1 set that value to the hidden element in the 2md form and submit using mail. Further doubts please post it back
Regards
Ramanan Kalirajan