I made bootstrap a form with this code and i am loosing my mind, not knowind why upon submitting is doing a GET method and redirecting to
JavaScript
x
tables.php?type=addTable&tablename=test&tablenumber=4#
And not to: essentials/settings-bar.php
JavaScript
<form action="essentials/settings-bar.php" method="post">
<input type="hidden" id="method" name="type" value="addTable">
<input
type="text" class="form-control col text-center m-1"
id="tablename" name="tablename"
placeholder="Table name"><br>
<input type="text"
class="form-control col text-center m-1" id="tablenumber"
name="tablenumber"
placeholder="Table number""><br>
<input type="submit" class="btn btn-primary m-2" value="Add table">
</form>
Advertisement
Answer
There was an unwanted hidden in the code, that i forgot about it