Ver Mensaje Individual
  #19 (permalink)  
Antiguo 09/04/2013, 11:08
katoncin
 
Fecha de Ingreso: marzo-2013
Ubicación: cadiz
Mensajes: 30
Antigüedad: 11 años, 1 mes
Puntos: 0
Respuesta: conexion formulario con mysql

Ahora es aquí el error

Código PHP:
<?
include "conexion.php";
if (!isset(
$accion)){
        echo
"
        <html>
        <head><title>Guardar datos en la base</title></head>
        <body>
<h3>Guardar datos en la base</h3>;
<form name="
remitente" method="post" action="guardar.php";
  <p>peso:<br>
    <input type="
text" name="peso">
  </p>
  <p>Alto:<br>
    <input type="
text" name="alto">
  </p>
  <p>Largo:<br>
    <input type="
text" name="largo">
  </p>
  <p>Ancho:<br>
    <input type="
text" name="ancho">
  </p>
  <p>Tipo:<br>
    <input type="
text" name="tipo">
  </p>
  <p>distancia:<br>
    <input type="
text" name="distancia">
  </p>
  <p>Precio<br>
    <input type="
text" name="precio">
  </p>
</form>
</body>
</html>"
;
}elseif(
$accion=="guardar"){
  include
"conexion.php";
  
$result=mysql_query("INSERT INTO usuarios  (ID_CLIENTE,nombre, apellidos,DIRECCION,POBLACION,CP,TELEFONO_F,TELEFONO_M,EMAIL )
    VALUES ('',$nombre,$apellidos,$calle,$ciudad,$cp,$fijo,$movil,"
",$conexion);
  echo" 
<html>
    <
head></head>
    <
body>
    <
h3>Los datos han sido guardados</h3>
    </
body>
    </
html>";
}
include "
cerrar_conexion.php";
?>
algo me falta según esto en linea 9, y no me cierra el php

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /homepages/21/d406764341/htdocs/YOTELOENVIO/guardar.php on line 9