0
I created this answer for a question, it works perfectly, inserts it into the database and everything. I wanted just one thing, when I pressed this button it besides saving in this database,.
if ($_POST['post'] == '3'){
$db->query("INSERT INTO resp3 (id, tonemai)VALUE (NULL ,'to nem ai, morra!')");
}
html
<form action="" method="post">
<input name="post" type="hidden" value="3"/>
<input type="image" src="7.jpg" onclick="this.form.submit()" id="botao3">
You can use require("outra_pergunta.php"); after query, it would display the html content of a file called outra_pergunta.php that you had in the same directory as the current script
– LF Ziron