So I have been toying around with PHP and MySQL for a while now, but I can't get this to work.
I have the following two code snippets.
From index.php:
<form action="send.php" method="post">
    <label>
        <p class="tekst">Nu kommer det svære valg! Skal det være: <br/>
            <input type="radio" name="Tur" id="Tur1" value="Tur1">Tur 1?<br />
        </label> 
        <label>
            <input type="radio" name="Tur" id="Tur2" value="Tur2">Tur 2?</p>
        </label> <br />
        <center> <button type="button" class="btn btn-success btn-lg" onclick="turSvar()">Jeg er klar til gåtur!</button> </center> <br/> <br/>
    </form>
and send.php:
if (isset($_POST['Tur'])){
        $Tur = $_POST['Tur'];
        mysql_query("INSERT INTO whatever VALUES ($Tur)");
    }
I have already created a table called "whatever" in my database (managed through phpMyAdmin). If I use the editor in phpMyAdmin to insert a string to the whatever table, it works. So is there a mistake in any of my code? I use mysqli_connect to connect to the database.
Any help would be nice!
 
     
     
    