Click here to Skip to main content
16,015,504 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HTML
<div class="form-area">  
    <form role="form" method="post" action="" id="registerform">
        <br style="clear:both">
    		<h3 style="margin-removed 25px; text-align: center;">Registration Form</h3>
		<div class="form-inline">
		<label class="radio">
			<input value="property" type="radio" name="whatneed" checked="">   Property Loan
		</label>
		   <label class="radio">
			<input value="automobile" type="radio" name="whatneed">   Automobile Loan
		</label>
		</div>
		<br>
		<div class="form-group">
		<div class="input-group">
			<input type="text" class="form-control" placeholder="Your Budget" name="budget" required>
			<span class="input-group-addon">.00</span>
		</div>
		</div>
		<div class="form-group">
			<input type="text" class="form-control" name="whenneed" placeholder="When are you planing to buy" required>
		</div>
		<div class="form-group">
			<input type="text" class="form-control" name="location" placeholder="Location" required>
		</div>
		<div class="form-group">
			<input type="text" class="form-control" id="name" name="name" placeholder="Name" required>
		</div>
		<div class="form-group">
			<textarea class="form-control" type="textarea" name="address" placeholder="Your Address" maxlength="140" rows="7"></textarea>                  
		</div>
		<div class="form-group">
			<input type="text" class="form-control" id="mobile" name="mobile" placeholder="Mobile Number" required>
		</div>
		<div class="form-group">
			<input type="text" class="form-control" name="landline" placeholder="Landline Number" required>
		</div>
		<div class="form-group">
			<input type="email" class="form-control" id="email" name="email" placeholder="Email" required>
		</div>
        <button type="submit" id="submit" name="submit" class="btn btn-primary pull-right">Submit Form</button>
    </form>
</div>



Hi. This is my HTML form. I need to email this content when user click submit button. I'm new to dot net. Please help me to fix this.
Posted

1 solution

There are many tutorials on this topic. You should search on google.

Here is one - Sending e-mails - The complete ASP.NET Tutorial[^].

If you don't want to use Asp.net, then you can add a mailto attribute to the form tag "action" attribute.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900