Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/85.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
通过PHP显示一个按钮_Php_Html - Fatal编程技术网

通过PHP显示一个按钮

通过PHP显示一个按钮,php,html,Php,Html,我想在单击第一个按钮时显示第二个按钮,我已经对其进行了编码,但由于未知原因,它无法工作。希望有人能帮助我: <input class="btn btn-success" type="submit" name="bb1" value="Show Button" "></input> <a href="#"> <form action="<?php $_SERVER['PHP_SELF']; ?>" metho

我想在单击第一个按钮时显示第二个按钮,我已经对其进行了编码,但由于未知原因,它无法工作。希望有人能帮助我:

<input class="btn btn-success" type="submit" name="bb1" value="Show Button" "></input>
      <a href="#">
            <form action="<?php $_SERVER['PHP_SELF']; ?>" method="post">
                 <?php
                 if(isset($_POST['bb1'])){
                     echo "<input class=\"btn btn-success\" type=\"file\" name=\"bb1\" value=\"Show ME\" \"></input>
";?>

问题已经解决,我只需要在表单中添加输入