I have a problem trying to save data from a html form to a SQL database.I saw some other posts but nothing helped. That's the form code:
<?php
require("connection.php");
echo '<html>
<title>Υποβολή Βιογραφικού</title>
</head></head>
<body>
<form method='Post' action='insert.php'>
Όνομα:<br>
<input type="text" name="firstname">
<br>
Επώνυμο:<br>
<input type="text" name="lastname">
<br>
Ηλικία:<br>
<input type="number" name="age">
<br>
Σπουδές:<br>
<textarea name="education" rows="10" cols="30"></textarea>
<br>
Επαγγελματική Εμπειρία:<br>
<textarea name="experience" rows="10" cols="30"></textarea></textarea>
<br>
Ξένες Γλώσσες:<br>
<textarea name="languages" rows="5" cols="10"></textarea>
<br>
Δυνατότητα Μετακίνησης:<br>
<input type="text" name="travelling">
<br>
<br>
<input type='submit' value='Υποβολή Βιογραφικού' />
</form>
</body>
</html>';
?>
And that's the code that saves the data to the database.
<?php
include("connection.php");
$firstname=$_POST["firstname"];
$lastname=$_POST["lastname"];
$age=$_Post["age"];
$education=$_Post["education"];
$experience=$_Post["experience"];
$languages=$_Post["languages"];
$travelling=$_Post["travelling"];
mysql_query("INSERT INTO cv (Onoma, Epwnimo, Hlikia, Spoudes,
EpagelmatikiEmpeiria, KsenesGlwsses, DinatotitaMetakinisis)
VALUES
('".$firstname."', '".$lastname."', '".$age."', '".$education."',
'".$experience."', '".$languages."', '".$travelling."')");
header("Location:index.php");
?>
I'm new to programming with php so the mistake might be something little