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,909
2,216
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.