So, it works like a charm when first going into the page. I write my feedback and press the submit button. Database gets all the info and nothing is wrong, but when i am doing a refresh it writes into the database, the same feedback form again, and depending how much i refresh, it always adds the same comment...`
<div class="text_style" style="margin-bottom: -30px;">Leave a review:</div><input class="bejel" style="width: 380px; height: 140px; margin-bottom: 40px;" type="text" name="comment" placeholder="Leave a comment..."><br>
<div class="text_style">Skins:</div>
<div class="select" style="margin-top: -35px;">
<select name="skins">
<option>Select your skin!</option>
<option value="jax">Pax Jax</option>
<option value="sivir">Pax Sivir</option>
<option value="singed">Riot Singed</option>
<option value="nasus">Riot Nasus</option>
<option value="twisted">Pax Twisted Fate</option>
<option value="ryze">Human Ryze</option>
<option value="kayle">Silver Kayle</option>
<option value="alistar">Black Alistar</option>
</select></div>
<div class="text_style" style="float: left;">Name:</div>
<input class="bejel" type="text" name="name" placeholder="Name">
<div class="text_style" style="float: left;">Email:</div>
<input class="bejel" type="text" name="email" placeholder="E-mail">
<input name="mod" type="submit" class="smb" value="" style="margin-bottom: 50px;">
</form>
</div>
<?php
$con = mysqli_connect("data for login");
if (isset($_POST['mod']))
{
$SQL = "INSERT INTO feedback_comment (rate, comment, name, skin, email) VALUES ('5', '$_POST[comment]', '$_POST[name]', '$_POST[skin]', '$_POST[email]')";
$result = mysqli_query($con, $SQL);
}
mysqli_close($con);
?>`