Am i missing something?

Hello you fine people, i seem to be having a tiny problem.
i have a flash movie with 4 input box’s, var named = var1, var2, var3 & var4 - i then have a send button to send the information to my php file.

on (release) {
  form.loadVariables("test.php", "POST");

This is my php code which should then send the information received from my var’s to my database. i cant see were im going wrong, can anyone spot anything???

/* Connecting, selecting database */
$link = mysql_connect("localhost", "username", "password")
or die("Could not connect : " . mysql_error());
echo "Connected successfully";
mysql_select_db("database") or die("Could not select database");
$sql = 'INSERT INTO `table` (`id`, `firstname`, `lastname`, `age`, `email`) VALUES (NULL, \'$var1\', \'$var2\', \'$var3\', \'var4\');';
/* Closing connection */

thank you for your help?