# Am i missing something?

**URL:** <https://forum.kirupa.com/t/am-i-missing-something/203714>\
**Category:** Uncategorized\
**Created:** [October 13, 2006, 12:10pm UTC](https://forum.kirupa.com/t/am-i-missing-something/203714 "2006-10-13T12:10:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fugu996](https://avatars.discourse-cdn.com/v4/letter/f/85e7bf/32.png) [@fugu996](https://forum.kirupa.com/u/fugu996)\
**Post date:** [October 13, 2006, 12:10pm UTC](https://forum.kirupa.com/t/am-i-missing-something/203714/1 "2006-10-13T12:10:07Z")

</div>

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.

```auto
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???

```php

<?php
/* 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 */
mysql_close($link);
?>

```

thank you for your help?
