So I have the following set of forms in the like of "form-control" (from bootstrap) and you get 3 different forms to fill in: title, email and the message itself
<form class="main_form">
<div class="row">
<div class="col-xl-12 col-lg-12 col-md-12 col-sm-12">
<input class="form-control" placeholder="title" type="text" name="Title">
</div>
<div class="col-xl-12 col-lg-12 col-md-12 col-sm-12">
<input class="form-control" placeholder="Email" type="text" name="Email">
</div>
<div class="col-xl-12 col-lg-12 col-md-12 col-sm-12">
<textarea class="textarea" placeholder="message" type="text" name="Message"></textarea>
</div>
<div class="col-xl-12 col-lg-12 col-md-12 col-sm-12">
<button class="send" >send</button>
</div>
</div>
</form>
My question is, how do you retrieve the info from the form-control's? And then, use that information to send this other script (pressing the send button):
<?php
function send_mail( $subject, $message, $headers){
// https://stackoverflow.com/questions/5335273/how-can-i-send-an-email-using-php
$to = "bordadoscreativos.02@gmail.com";
mail($to, $subject, $message, $headers);
}
?>