Bueno pido ayuda a los phperos para ayudarme con esto, el codigo es muy simple pero no funciona :s alguien sabe el por que?
<?
if($_POST[enviar]) {
include("conect.php");
$id = "";
$nombre = $_POST[nombre];
$telefono = $_POST[telefono];
$dni = $_POST[dni];
$poblacion = $_POST[poblacion];
$codigo = $_POST[codigo];
$email = $_POST[email];
$servicios = $_POST[servicios];
$diseño = $_POST[diseño];
$euros = $_POST[euros];
$pagado = $_POST[pagado];
if(mysql_query("INSERT INTO clientes (id,nombre,telefono,dni,poblacion,codigo,email,servicios,diseño,euros,pagado) VALUES ('.$id.','.$nombre.','.$telefono.','.$dni.','.$poblacion.','.$codigo.','.$email.','.$servicios.','.$diseño.','.$euros.','.$pagado.')")){ ;
echo"<p align='center'><font face='Verdana' style='font-size: 9pt' color='#666666'>Registro Finalizado</font></p>";
}
else {
echo"<p align='center'><font face='Verdana' style='font-size: 9pt' color='#666666'>Error en el registro</font></p>";
}
} else {
?>
<title>Formulario de Registro</title>
<style type="text/css">
<!--
.Estilo2 {
color: #666666;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 9px;
}
.Estilo3 {
font-family: Arial;
font-size: 8pt;
color: #333333;
}
-->
</style>
<form name="form1" method="post" action="">
<div align="center"><span class="Estilo3">Informacion Personal <br />
</span>
<table width="270" height="0%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="8" class="Estilo3"><img src="flecha.gif" alt="a" width="0" height="7" /></td>
<td width="115" class="Estilo3">Nombres y apellidos : </td>
<td width="147" class="Estilo3"><input name="nombre" type="text" id="nombre" /></td>
</tr>
<tr>
<td class="Estilo3"><img src="flecha.gif" alt="a" width="0" height="7" /></td>
<td class="Estilo3">Telefono:</td>
<td class="Estilo3"><input name="telefono" type="text" id="telefono" /></td>
</tr>
<tr>
<td class="Estilo3"><img src="flecha.gif" alt="a" width="0" height="7" /></td>
<td class="Estilo3">DNI:</td>
<td class="Estilo3"><input name="dni" type="text" id="dni" /></td>
</tr>
<tr>
<td class="Estilo3"><img src="flecha.gif" alt="a" width="0" height="7" /></td>
<td class="Estilo3">Poblacion:</td>
<td class="Estilo3"><input name="poblacion" type="text" id="poblacion" /></td>
</tr>
<tr>
<td class="Estilo3"><img src="flecha.gif" alt="a" width="0" height="7" /></td>
<td class="Estilo3">Codigo Postal: </td>
<td class="Estilo3"><input name="codigo" type="text" id="codigo" /></td>
</tr>
<tr>
<td class="Estilo3"><img src="flecha.gif" alt="a" width="0" height="7" /></td>
<td class="Estilo3">Email:</td>
<td class="Estilo3"><input name="email" type="text" id="email" /></td>
</tr>
<tr>
<td colspan="3" class="Estilo3"><div align="center">Informacion del Contrato </div></td>
</tr>
<tr>
<td class="Estilo3"><img src="flecha.gif" alt="a" width="0" height="7" /></td>
<td class="Estilo3">Servicios:</td>
<td class="Estilo3"><input name="servicios" type="text" id="servicios" /></td>
</tr>
<tr>
<td class="Estilo3"><img src="flecha.gif" alt="a" width="0" height="7" /></td>
<td class="Estilo3">Diseño:</td>
<td class="Estilo3"><div align="center">
<select name="diseño" id="diseño">
<option value="si" selected="selected">Si</option>
<option value="no">No</option>
</select>
</div></td>
</tr>
<tr>
<td class="Estilo3"><img src="flecha.gif" alt="a" width="0" height="7" /></td>
<td class="Estilo3">Euros:</td>
<td class="Estilo3"><input name="euros" type="text" id="euros" /></td>
</tr>
<tr>
<td class="Estilo3"><img src="flecha.gif" alt="a" width="0" height="7" /></td>
<td class="Estilo3">Pagado:</td>
<td align="center" class="Estilo3"><label>
<select name="pagado" id="pagado">
<option value="si" selected="selected">Si</option>
<option value="no">No</option>
</select>
</label></td>
</tr>
<tr>
<td height="42" colspan="3" class="Estilo3"><div align="center">
<input type="submit" name="enviar" value="Registrar Cliente" />
</div></td>
</tr>
</table>
</div>
</label>
</p>
<label></label>
</form>
<?
}
?>
'.$id.','.$nombre.','.$telefono.','.$dni.','.$poblacion.','.$codigo.','.$email.','.$servicios.','.$diseño.','.$euros.','.$pagado.'
Pobre esto con '.$id.' y con "'.$nombre.'"
No me da ningun fallo, el problema es que no se registra :S PD: el conect.php esta bien