Ver Mensaje Individual
  #1 (permalink)  
Antiguo 16/08/2004, 07:48
tamahome
Usuario no validado
 
Fecha de Ingreso: agosto-2004
Mensajes: 74
Antigüedad: 19 años, 8 meses
Puntos: 0
Formulario De Insercion De Datos En Bd

Hola necesito ayuda Urgente,

he creado un formulario de insercion de datos en la base de datos y me da el siguiente error: "Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/guiasdig/public_html/prova/formulariafegi.php on line 8"
he estado revisandolo y no acabo de encontrar el fallo.

el codigo del archivo es el siguiente:
formulariafegi.php
<?
include ("conexio.php");
?>
<html>
<body>
<?
if ($enviar) {
$sql "INSERT INTO ficha (num_ficha, actividad, empresa, calle, poblacion, provincia, codigop, telefono1, telefono2, movil, fax, email, weppage, palabclave, descripcion, actividad)";
$sql .= "VALUES ('$actividad', '$empresa', '$calle', '$poblacion', '$provincia', '$codigop',
'$telefono1', '$telefono2', '$movil', '$fax', '$email', '$webpage', '$palabclave', '$descripcion')";
$result = mysql_query($sql);
echo "Gracias!! Hemos recibido sus datos.\n";
}else{
?>
<?
}
?>
</body>
</html>

y el archivo del formulario:

form.php

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Actividad</title>
</head>

<body>
<form method="post" action="formulariafegi.php">
numero ficha :<input type="text" name="num_ficha"><br>
Actividad :<input type="text" name="actividad"><br>
Empresa :<input type="text" name="empresa"><br>
Direccion :<input type="text" name="calle"><br>
Poblacion :<input type="text" name="poblacion"><br>
Provincia :<input type="text" name="provincia"><br>
Codigo Postal :<input type="text" name="codigop"><br>
Telefono 1 :<input type="text" name="telefono1"><br>
Telefono 2 :<input type="text" name="telefono2"><br>
Movil :<input type="text" name="movil"><br>
Fax :<input type="text" name="fax"><br>
Direccion E-mail :<input type="text" name="email"><br>
Pagina Web :<input type="text" name="webpage"><br>
Palabras Clave :<input type="text" name="palabclave"><br>
Descripcion de la Empresa :<input type="text" name="descripcion"><br>
<input type="submit" value="enviar" name="enviar">
</form>

</body>

</html>
----------------------------------------------------

Gracias por vuestra colaboracion