I have a certain input
of type submit
that when clicking acts on a pagina.php
. I wanted to do this, but when I clicked it it would not change pages, but it would act on that pagina.php
.
HTML:
<html>
<form method="post" action="inserir.php">
<input type="submit" value="Enviar!">
</form>
</html>
PHP:
<?php
$link = mysqli_connect("localhost", "root", "vertrigo", "csgodouble");
$contador = "0";
while($contador < 10000){
$contador++;
$numero = rand(0, 14);
$sql = mysqli_query($link, "INSERT INTO apostas (numero_sorteado, hash, data_f, status) VALUES ('$numero', '0', '0', '0')");
}
?>