Hi
I'm using Hexagoon as "domain for sale" template.
I would like to insert an additional hidden form-field with a predefined value and this should be sent by mail.
<input id="msg-myhiddenfield" type="hidden" class="md-input" name="myhiddenfield" value="someText">
Can you please give me some assistance? How do I need to extend the "domain.php" file?
Thanks.
Hello,
After inserting your html code into form, follow the steps below:
1. Open server/domain.php
2. Find a line:
$captcha = isset($_POST["captcha"])? intval($_POST["captcha"]) : "";
Then insert after:
$myhiddenfield = isset($_POST['myhiddenfield'])?$_POST['myhiddenfield']:"";
3. Find
$message = "bid: $bid, phone: $phone"
then replace to:
$message = "bid: $bid, phone: $phone, your hiddenfield: $myhiddenfield";
You can modify the content message of email to satisfy your need.
Regards,
Wpprime Team