Goran.Siriev

Member
Mar 9, 2016
12
1
53
greece
cPanel Access Level
Website Owner
POST method not working with button .. only if i set
<input type="submit">working ..


I trying to search on google but no result... my php project run on many cpanel without errors / Warnings but yesterday on fresh install cpanel i got this problem and can't solve it ..

Code:
<form role="form" method="post">
      <div class="col-lg-3" style="margin-bottom: 10px;">
               <button name="cash"  valeu="0"
              class="btn btn-info btn-sm btn-block">Button</button>
         <input type="hidden" value="7" id="days" name="days">
      </div>
    </form>

<?php
if (isset($_POST['cash']))
{
echo 'Button Working';
}
?>
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,267
463
Hello :)

Do you notice any error messages in the error_log file within this script's document root or in /usr/local/apache/logs/error_log when attempting to reproduce the issue?

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,267
463
I am also getting the same error.
What version of PHP is installed on your system? Do you also notice no error messages in the error_log file within the script's document root?

Thank you.