I wanted to do that when my checkbox is checked, a php script whill be executed. There is my code :
<form action="checkboxes.php" method="post">
<input type="checkbox" value="dawid" name="chk1"> 4K </input>
<input type="submit" name="Submit" value="Submit"></input>
</form>
<?php
$bdd=new PDO("mysql:host=localhost;dbname=techtronik.pl;charset=utf8", "root");
$wyszukiwanie = $bdd->query("SELECT * FROM procesory ");
while($wynik = $wyszukiwanie->fetch() )
{
echo $wynik ['nazwaproduktu'] . ". ";
}
?>
Can someone please help me ? Thanks.
Aucun commentaire:
Enregistrer un commentaire