this is how I work to make a comment system since,
and this is how I use header to "reload" the page to only while lying info into the database.
when I sent info into the database and I click f5 then throw it into the database again. So like it is spam.
if ($stmt = $this->mysqli->prepare('INSERT INTO fms_kommentarforum (getid, brugerid, kommentar) VALUES (?, ?, ?)')) {
$stmt->bind_param('sss', $getid, $brugerid, $kommentar);
$getid = $_GET['id'];
$brugerid = $_SESSION["id"];
$kommentar = $_POST["beskedinfo"];
$stmt->execute();
//reload the page again
ob_start();
header("Location: http://www.blabla.dk/forum/" . $_GET["id"] . "/" . $_GET["url"] . "/");
ob_end_flush();
$stmt->close();
}
Addition the url to look like some out here; blabla.com/forum/1/test---ae-oe-aa-aa/# that's when I sent info into the database once
I would like that # does not come on when it was.
and in the form I have written action="#"