I am trying to make a form which would allow customers buying a product quickly. All customer's info should be sent to admin's email address.
So, there are two buttons in products grid or list. "Buy" and "Buy in 1 click".
When a customer clicks on a second button a modal window should appear and offer to complete the form.
The form has following inputs:
Product name (hidden),
Name,
Phone no,
Email,
Message,
Send button.
When the form is filled and submitted the info should be sent to email address of an admin.
<div class="quick-buy-form" style="">
<form>
<input type="text" value="" name="qb-product-link" style="display:none;" />
<input type="text" value="" name="qb-name" placeholder="What is your name?" class="" />
<input type="text" value="" name="qb-phone" placeholder="Your phone no" class="" />
<input type="text" value="" name="qb-email" placeholder="Your email address" class="" />
<textarea class="" value="" name="" placeholder="Put your city and address here, please."></textarea>
<input type="submit" value="Submit" />
</form>
</div>
Help me code this form and make it work, please???
Thank you!