Additional hidden form-field

mie
Offline
Last seen: 2 years 2 months ago
Sat, 11/23/2013 - 20:35
#1
Additional hidden form-field

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.

duongld
duongld's picture
Offline
Last seen: 2 years 11 months ago
Mon, 11/25/2013 - 17:42

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

Log in or register to post comments