Hi there doing a small project with databases ( don't have too much experience with them). I'm working with mySQL and php, having a little bit of trouble with the php and posting the info from the HTML form to the database. 

Here is the code: 

```
<?php
$host=""; // Host name 
$username=""; // Mysql username 
$password=""; // Mysql password 
$db_name=""; // Database name 
$tbl_name="tags"; // Table name

// Connect to server and select database.  
mysql_connect("$host", "$username", "$password")or die("cannot connect");   
mysql_select_db("$db_name")or die("cannot select DB");

// get data that sent from form 
$s_name=$_GET['name'];
$s_system=$_GET['system'];
$s_cate=$_GET['cate'];

$sql="INSERT INTO $tbl_name(name,system,cate)VALUES('$s_name', '$s_system', '$s_cate')";
$result=mysql_query($sql);

if($result){
echo "Successful<BR>";
echo "<a href=mainforum.php>View your topic</a>";
}
else {
echo "ERROR";
}
mysql_close();
?>

```

If anyone could help explain to me what I am doing wrong, much would very be appreciated. 

THANKS

Here is a link to what I am trying to do: 

<http://socialsoftware.purchase.edu/roger-p.king/database2/enter_gamertag.html>