fetching mint URL from form server side handler

This commit is contained in:
Marcello Stanisci 2015-11-14 22:00:07 +01:00
parent 4b5fc7dc0e
commit aa75ad4e1c
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@
// Evaluate form
$reserve_pk = $_POST['reserve_pk'];
$kudos_amount = $_POST['kudos_amount'];
$mint = $_SERVER['SERVER_NAME'];
$mint = $_POST['mint_rcv'];
// check if the webform has given a well formed amount
$ret = preg_match ('/[0-9]+(\.[0-9][0-9]?)? [A-Z]+/', $kudos_amount, $matches);

View File

@ -58,7 +58,7 @@
<option value="10.50 KUDOS">10.50 KUDOS</option>
<option value="1000.3 KUDOS">1000.3 KUDOS</option>
</select>
<input type="text" id="kudos-mint" hidden></input>
<input type="text" name="mint_rcv" id="kudos-mint" hidden></input>
<input id="select-mint"
type="button"
value="Select mint"