从php的文本框中获取值

问题描述

| 我正在尝试创建一个捐赠页面。漏洞页面是php, 有一个文本框,其中包含应通过带有URL的隐藏输入发送到付款网关的金额值。我已经尝试了很多次,但是没有用。我仍然是一个初学者,可以请任何人在这里修复我的代码
   <div class=\"donate\">
   <?php
        $amount = $_REQUEST[\'amount\'];
        $txtCurrency = 840;
        $txtAmount   = number_format($amount,2,\'.\',\'\');
        echo $amount;       
        $key     = \"TEST\";
                    $txthttp     = \"http://test.com/you.php\";

    ?> 
    <form action=\"payment.php\" name=\"form1\">
        <input type=\"text\" id=\"amount\">
        <input type=\"submit\">
            <input type=\"hidden\" name=\"txtAmount\" value=\"<?= $txtAmount; ?>\">
            <input type=\"hidden\" name=\"txthttp\" value=\"<?= $txthttp; ?>\">
            <input type=\"hidden\" name=\"signature\" value=\"<?= $key; ?>\">
    </form>
   </div>

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)