Есть форма оплаты нужно ввести сумму и нажать отправить перенавпрявляет на страницу банка это всё есть всё работает но когда ввожу свою сумму никак не могу отправить код выглядить следующим образом
<form method="post" action="секретная ссылка" class="payment__form">
<input name="BillToName" required type="text" name="" id="" class="input__name_surname" placeholder="あなたの名前と姓:">
<input type="hidden" name="clientid" value="<?php echo $clientId; ?>" />
<input type="number" name="amount" class="input__amount" value="" />
<input type="hidden" name="oid" value="<?php echo $oid; ?>" />
<input type="hidden" name="okUrl" value="<?php echo $okUrl; ?>" />
<input type="hidden" name="failUrl" value="<?php echo $failUrl; ?>" />
<input type="hidden" name="rnd" value="<?php echo $rnd; ?>" />
<input type="hidden" name="currency" value="<?php echo $currencyVal; ?>" />
<input type="hidden" name="storekey" value="<?php echo $storetype; ?>" />
<input type="hidden" name="storetype" value="<?php echo $storetype; ?>" />
<input type="hidden" name="lang" value="<?php echo $lang; ?>" />
<input type="hidden" name="taksit" value="<?php echo $instalment; ?>" />
<input type="hidden" name="islemtipi" value="<?php echo $transactionType; ?>" />
<input type="hidden" name="hash" value="<?php echo $hash; ?>" />
<input type="hidden" name="refreshtime" value="0" />
<input type="submit" value="Submit" value="支払う" class="pay__button">
</form>
<?php
$clientId = "секретный код";
$amount = $_POST["amount"];
$oid = "";
$okUrl = "http://com:5000/ok/";
$failUrl = "http://com:5000/pay/";
$rnd = microtime();
$currencyVal = "417";
$storekey = "TEST1234";
$storetype = "3d_Pay_Hosting";
$lang = "ru";
$instalment = "";
$transactionType = "Auth";
$hashstr = $clientId . $oid . $amount . $okUrl . $failUrl .$transactionType. $instalment .$rnd .$storekey;
$hash = base64_encode(pack('H*',sha1($hashstr))); //https://www.w3schools.com/php/func_misc_pack.asp
?>
я попытался присвоить данные с input в переменную
$amount = $_POST["amount"];
вот таким вот образом , но данные никак не попадают при отправке
есть один параметр hash он берет определенные данные кодирует их и вместе с той же формой отправялется вставляется в input но вот как получить данные с input и присвоить их переменной