I created a form where I want to insert data into the database, but I do not want the user to enter the data, so I put display:block
in the form. However when I click the button nothing happens.
The code for form
is as follows:
<form role="form" action="inserir_pedido.php" method="post">
<input type="text" name="id_servico" id="id_servico" style="display:none;">
<input type="text" name="nome_servico" id="nome_servico" style="display:none;">
<input type="text" name="horas" id="horas" style="display:none;">
<input type="text" name="id_profissional" id="id_profissional" style="display:none;" value="<?php echo $_GET['id'] ?>">
<input type="text" name="id_utilizador" id="id_utilizador" style="display:none;">
<button type="button" class="btn btn-info">Enviar email</button>
</form>