ho risolto il problema che tanti hanno esposto:

"You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '', 'marco.papa79@gmail.com')' at line 11"

il problema era che nel file data_insert.php
manca un apice $pass' diventa '$pass'

{
switch ($_GET['action'])
{
case "add":
switch ($_GET['type'])
{
case "user":
$sql = "INSERT INTO user
(user_firstname,
user_lastname,
user_username,
user_password,
user_email)
VALUES
('$firstname',
'$lastname',
'$user',
'$pass',
'" . $_POST['email'] . "')";
$users = mysql_query($sql) or die(mysql_error());
$id = mysql_insert_id(); // recuperiamo l'id (contenuto nel campo user_id) dell'utente appena inserito
break;
}
break;
}'