PHP Wamp server : <p>Hey I have a database that contains information about different countries. I also have a html page where you can submit information about countries. Can someone help me to write a code that says that the information has been stored in the database instead of it just redirecting to a blank page?</p>

<p>Here is my html page where you submit information:</p>

<pre><code>&lt;!DOCTYPE HTML&gt;
&lt;html&gt;
&lt;head&gt;
    &lt;meta charset="UTF-8"&gt;
        &lt;title&gt;Sett inn land&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;form action="geoinn.php" method="get"&gt;
        Land: &lt;input type="text" name="navn"&gt; &lt;br&gt;
        Hovedstad: &lt;input type="text" name="hovedstad"&gt; &lt;br&gt;
        Areal: &lt;input type="text" name="areal"&gt; &lt;br&gt;
        Folketall: &lt;input type="text" name="folketall"&gt; &lt;br&gt;

        &lt;input type="submit" value="Legg inn informasjon"&gt;  
    &lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>And here is the page that you are redirected to when you click submit on the other page. This is the page where I want to have a code saying either that "The information has been stored in our database" or that it has not:</p>

<pre><code>    &lt;?php
    $tjener = "localhost";
    $brukernavn = "root";
    $passord ="";
    $database ="Geografi";
    $kobling = mysqli_connect($tjener,$brukernavn,$passord,$database);
    $kobling-&gt;set_charset("utf8");
?&gt;
&lt;!DOCTYPE HTML&gt;
&lt;html&gt;
&lt;head&gt;
    &lt;meta charset="UTF-8"&gt;
    &lt;title&gt;Geografi&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;?php
    $land = $_GET["navn"];
    $hovedstad = $_GET["hovedstad"];
    $areal = $_GET["areal"];
    $folketall = $_GET["folketall"];
    $sql ="INSERT INTO land (navn,hovedstad, areal, folketall)       VALUES('$land','$hovedstad','$areal', '$folketall')";
    mysqli_query($kobling, $sql);
    mysqli_close($kobling);
    ?&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
