how to post html data to .aspx file and save data
i have create one html file & for that i use JAVASCRIPT to get the values. I want to save the data and post the value from Javascript and send mail to the mail-id using .aspx file & also save data into database.
Below is my HTML code and i need to send this form using .aspx,
<form id="myform" class="myform" rel="external" method="post">
<span id="errm">Please fill the required fields.</span>
<div>
<label for="yourname">First Name:<sup>*</sup></label>
<input type="text" id="yourname" name="yourname" value="" class="required" title="yourname">
</div>
<div>
<label for="lastname">Last Name:</label>
<input type="text" id="lastname" name="lastname" value="" title="lastname">
</div>
<div>
<label for="phone">Telephone:</label>
<input type="text" name="phone" id="phone" title="phone">
</div>
<div>
<label for="email">Email Address:<sup>*</sup></label>
<input type="text" name="email" id="email" class="required email" title="email">
</div>
<div style="margin-bottom:10px">
<label for="message">Comments?<sup>*</sup></label>
<textarea rows="5" name="message" id="message" class="required" title="message"></textarea>
<span style="font-size:11px; color:#990000">* denotes required fields</span>
</div>
<div> <a href="" onClick="doSubmit('myform');" rel="external" data-role="button">SUBMIT</a> </div>
</form>