Hi
So, I'm a 11th grade student and I'm doinga website to an enterprise, and well, one of the pages has a wierd bug
Im doing an html and php website that uses MySQL tables, I was doing one of the pages of my website using other page to the same website, changing what was needed for this one but this is showing, I dont know what to do, can someone help me?
Here is the section:
<td>
<?php if (empty($pedido['resposta']) || $pedido['resposta'] == 'por aprovar') { ?>
<form method="POST">
<input type="hidden" name="id_pedido" value="<?php echo htmlspecialchars($pedido['id_pedidos']); ?>">
<button type="submit" name="resposta" value="aprovado" style="color:green">Aprovar</button>
<br><br>
<input type="text" name="motivo_rejeicao_<?php echo htmlspecialchars($pedido['id_pedidos']); ?>">
<button type="submit" name="resposta" value="rejeitado" style="color:red">Rejeitar</button>
</form>
<?php } elseif ($pedido['resposta'] == 'aprovado') { ?>
<form method="POST" onsubmit="return confirm('Tens a certeza que quer apagar estas férias?')">
<input type="hidden" name="id_pedidos" value="<?php echo $pedido['Id_pedidos']; ?>">
<button type="submit" name="apagar" value="1" style="color:red">
Apagar</button>
</form>
<?php } ?>
</td>
---
Thank you

So, I'm a 11th grade student and I'm doinga website to an enterprise, and well, one of the pages has a wierd bug
Im doing an html and php website that uses MySQL tables, I was doing one of the pages of my website using other page to the same website, changing what was needed for this one but this is showing, I dont know what to do, can someone help me?
Here is the section:
<td>
<?php if (empty($pedido['resposta']) || $pedido['resposta'] == 'por aprovar') { ?>
<form method="POST">
<input type="hidden" name="id_pedido" value="<?php echo htmlspecialchars($pedido['id_pedidos']); ?>">
<button type="submit" name="resposta" value="aprovado" style="color:green">Aprovar</button>
<br><br>
<input type="text" name="motivo_rejeicao_<?php echo htmlspecialchars($pedido['id_pedidos']); ?>">
<button type="submit" name="resposta" value="rejeitado" style="color:red">Rejeitar</button>
</form>
<?php } elseif ($pedido['resposta'] == 'aprovado') { ?>
<form method="POST" onsubmit="return confirm('Tens a certeza que quer apagar estas férias?')">
<input type="hidden" name="id_pedidos" value="<?php echo $pedido['Id_pedidos']; ?>">
<button type="submit" name="apagar" value="1" style="color:red">
</form>
<?php } ?>
</td>
---
Thank you
