i am new to java and i try to make student's course apply portal, so i hope to get their Name, Mobile, Email and which course, which branch details. so then they click apply now button i need to get those details to my email (print data to the email when some one submit the data..please help me.)
i try this method, but no luck Please HELP ME..!!!
<div class="col-sm-6">
<div class="form-group">
<label for="name">Name <small>*</small></label>
<input id="form_name" name="name" type="text" placeholder="Enter Name" required="" class="form-control">
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label for="phone">Mobile <small>*</small></label>
<input id="phone" name="phone" class="form-control required" type="text" placeholder="Enter Mobile">
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="form-group">
<label for="email">Email <small>*</small></label>
<input id="email" name="email" class="form-control required email" type="email" placeholder="Enter Email">
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="form-group mb-10">
<div class="styled-select">
<select id="course" name="course" class="form-control" required="">
<option value="">- Select Course -</option>
<optgroup label="City & Guilds">
<option value="Mechanical Engineering">HND in Mechanical Engineering</option>
<option value="Civil Engineering">HND in Civil Engineering</option>
<option value="QS">HND in Quantity Surveying</option>
</optgroup>
</select>
</div>
</div>
</div>
</div>
<div class="form-group">
<input id="form_botcheck" name="form_botcheck" class="form-control" type="hidden" value="" />
<button type="submit" class="btn btn-block btn-dark btn-theme-colored btn-sm mt-20 pt-10 pb-10" data-loading-text="Please wait...">Apply Now</button>
</div>
</form>
<!-- Job Form Validation-->
<script type="text/javascript">
$("#apply_now").validate({
submitHandler: function (form) {
var form_btn = $(form).find('button[type="submit"]');
var form_result_div = '#form-result';
$(form_result_div).remove();
form_btn.before('<div id="form-result" class="alert alert-success" role="alert" style="display: none;"></div>');
var form_btn_old_msg = form_btn.html();
form_btn.html(form_btn.prop('disabled', true).data("loading-text"));
$(form).ajaxSubmit({
window.alert("Application Sent!");
});
}
});
</script>
</div>
<div class="col-md-6 wow fadeInRight" data-wow-duration="1s" data-wow-delay="0.3s">
</div>
</div>
</div>
</div>
</section>
</div>```
This is the code i tried, everything working but i have no luck to get the data to my email. i am not a expert so i need to know how to do this.please anyone please help me with this problem.
Thank you
Aucun commentaire:
Enregistrer un commentaire