<?php
if (isset($_REQUEST['email'])) {
$admin_email = "indrajeet@aksindia.com";
$email = $_REQUEST['email'];
$subject = "Subscribe Mail";
mail($admin_email, "$subject", "From:" . $email);
echo "Thank you for contacting us!";
}
else { ?>
<form method="post">
<div class="input-group">
<input type="email" class="form-control" placeholder="Enter your email" name="email" required>
<br>
<input class="btn btn-theme" style="margin-top:21px;" type="submit" value="Subscribe" />
</div>
</form> <?php } ?>
</div>
if (isset($_REQUEST['email'])) {
$admin_email = "indrajeet@aksindia.com";
$email = $_REQUEST['email'];
$subject = "Subscribe Mail";
mail($admin_email, "$subject", "From:" . $email);
echo "Thank you for contacting us!";
}
else { ?>
<form method="post">
<div class="input-group">
<input type="email" class="form-control" placeholder="Enter your email" name="email" required>
<br>
<input class="btn btn-theme" style="margin-top:21px;" type="submit" value="Subscribe" />
</div>
</form> <?php } ?>
</div>