How do you know there are no errors? You have ZERO CODE in there looking for an error.
And you have ZERO CODE for debugging.
$SQL = "INSERT INTO user (title, name, surname, username, password) VALUES ($title, $name, $surname, $uname, md5($pword))";
echo "<hr/>DEBUG SQL: " . $SQL . "<hr/>\n";
$result = mysql_query($SQL) or die( mysql_error() );
HINT: Literal text strings in MySQL must be enclosed in apostrophes, just as you would do in PHP.
That is, in PHP you wouldn't try to do
$title = This is my title;
would you? Why would you think SQL can understand This is my title
if you don't put quotes or (better, in SQL) apostrophes around it?
And by the by: Password between 1 and 6 characters??? REALLY??? So you *WANT* hackers to be able to easily break into your system? Modern systems usually require passwords to be a MINIMUM of 6 characters and most places have moved to minimum sizes of 8 characters. And requiring an upper case letter, a lower case letter, a digit, and a special character within that password.