У меня есть форма, и она почему то не срабатывает когда нажимаю на подтверждение, почему она не срабатывает и как это исправить?
<form id="statusEdit" action="add/statusEdit.php" method="POST" novalidate="">
<input type="hidden" name="hash" value="<?=$sql['hash']?>" />
<input type="hidden" name="makeStatus" value="active" />
<button type="button" class="btn btn-xs btn-success btn-fill btn-move-right" >
В работу
<span class="btn-label">
<i class="ti-control-play">
Перепишите по другому немного саму кнопку, замените в кнопке type=”button” на type=”submit” и тогда должно сработать:
<form id="statusEdit" action="add/statusEdit.php" method="POST" novalidate="">
<input type="hidden" name="hash" value="<?=$sql['hash']?>" />
<input type="hidden" name="makeStatus" value="active" />
<button type="submit" class="btn btn-xs btn-success btn-fill btn-move-right" >
В работу
<span class="btn-label">
<i class="ti-control-play">
У меня так отправляет запрос)