Hola pateketrueke, gracias por responder.
Eso es lo que me preguntaba, ¿qué estoy haciendo mal?.
Después de conectar con la db le pongo el query:
Código PHP:
mysql_query("SET NAMES 'utf8'");
esto es para insertar en la db los acentos y ñ.
Los inserto de esta manera:
Código PHP:
$insertSQL = sprintf("INSERT INTO clientes (ID, nombre, apellidos, empresa, ciudad, telefono, email, fecha) VALUES (%s, %s, %s, %s, %s, %s, %s, %s)",
GetSQLValueString($_POST['ID'], "text"),
GetSQLValueString($_POST['nombre'], "text"),
GetSQLValueString($_POST['apellidos'], "text"),
GetSQLValueString($_POST['empresa'], "text"),
GetSQLValueString($_POST['ciudad'], "text"),
GetSQLValueString($_POST['telefono'], "text"),
GetSQLValueString($_POST['email'], "text"),
GetSQLValueString($_POST['fecha'], "text"));