I am trying to create a basic input form for writing new clients to the MariaDB table, but my publication results return to zero.
The entry form is set below
<form class="clientreg" id="NewClient" method="post" action="posttest.php">
<label>Client Name:
<input type="text" name="ClientName" class="LongText"/>
</label>
<label>Bulk Discount: <input type="number" name="Bulk" class="discount"/></label>
<label>Settlement Discount: <input type="number" name="settlement" class="discount"/></label>
<label>Trades Discount: <input type="number" name="Trades" class="discount"/></label>
<input type="submit"/>
</form>
print_r($_POST)
returns Array()
, so the information is not selected when sending. I checked the obvious problems that arise, i.e. No name=' attributes
and fix coding, but I completely lost
source
share