Encontre algo para hacer el formulario pero me sale este error
Parse error: syntax error, unexpected T_STRING in \\hmfsw02\web02\DTCWIN038\sigazltda.com\public_html\formulario.php on line 67
La pag es
http://cigasltda.com/contacto.htmlEstos son los codigos HTML:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Contacto</title>
<link rel="stylesheet" href="contacto.css" type="text/css" media="all">
</head>
<p class="centrado"></p>
[contenido no disponible]<body>
<div class="aerobuttonmenu">
<span>Inicio</span>
<span>Biodiesel</span>
<span>Stevia</span>
<span>Aceite De Soja</span>
<span>Membrana Ceramica</span>
<span>Ozono</span>
<span>Agro</span>
<span>Contacto</span>
</div>
<h2 class="centrado">Contacto</h2>
<form action="formulario.php" method="post" enctype="multipart/form-data" name="frm">
<table border="0">
<tr>
<td width="200"><div align="right"><h1>Nombre y Apellido*:</h1></div></td>
<td width="200"><div align="left">
<label>
<input name="nombre" type="text" id="nombre" />
</label>
</div></td>
</tr>
<tr>
<td><div align="right"><h1>Empresa*:</h1></div></td>
<td><div align="left">
<label>
<input name="titulo" type="text" id="titulo" />
</label>
</div></td>
</tr>
<tr>
<td><div align="right"><h1>Cargo*:</h1></div></td>
<td><div align="left">
<label>
<input name="titulo" type="text" id="titulo" />
</label>
</div></td>
</tr>
<tr>
<td><div align="right"><h1>Tel/Fax*:</h1></div></td>
<td><div align="left">
<label>
<input name="titulo" type="text" id="titulo" />
</label>
</div></td>
</tr>
<tr>
<td><div align="right"><h1>E-mail*:</h1></div></td>
<td><input name="email" type="text" id="email" /> </td>
</tr>
<tr>
<tr>
<td><div align="right"><h1>Consulta(¿Que Desea Saber?)*: </h1></div></td>
<td><div align="left">
<label>
<textarea name="guia" id="guia"></textarea>
</label>
</div></td>
</tr>
<td><div align="right">
<input name="restablecer" type="reset" id="restablecer" value="Restablecer" />
</div></td>
<td><div align="left">
<input name="Enviar" type="submit" id="Enviar" value="Enviar" />
</div></td>
</tr>
</table></form>
<h1> *(los campos son obligatorio) </h1>
<h2>Pagina En Contrccion! Cigas</h1>
<script language="JavaScript" type="text/JavaScript">
function valida_envia(){
if(document.frm.nombre.value == "") {
alert("Por favor indique Su Nombre y Apellido");
document.frm.nombre.focus();
return 0;
}
if(document.frm.empresa.value == "") {
alert("Por favor indique Su Empresa");
document.frm.empresa.focus();
return 0;
}
if(document.frm.tel.value == "") {
alert("Por favor indique Su Tel/Fax");
document.frm.tel.focus();
return 0;
}
if(document.frm.email.value == "") {
alert("Por favor indica un E-Mail valido, para enviarle su respuesta");
document.frm.email.focus();
return 0;
}
if(document.frm.texto.value == "") {
alert("Por favor indica un Mensaje");
document.frm.texto.focus();
return 0;
}
alert("Muchas gracias por enviar el formulario");
document.frm.submit();
return true;
}
</script>
</body>
</html>
ESTE ES EL CODIGO PHP:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>formulario.php</title>
</head>
<form action="formulario.php" method="post" enctype="multipart/form-data" name="frm">
<table border="0">
<tr>
<td width="200"><div align="right"><h1>Nombre y Apellido*:</h1></div></td>
<td width="200"><div align="left">
<label>
<input name="nombre" type="text" id="nombre" />
</label>
</div></td>
</tr>
<tr>
<td><div align="right"><h1>Empresa*:</h1></div></td>
<td><div align="left">
<label>
<input name="titulo" type="text" id="titulo" />
</label>
</div></td>
</tr>
<tr>
<td><div align="right"><h1>Cargo*:</h1></div></td>
<td><div align="left">
<label>
<input name="titulo" type="text" id="titulo" />
</label>
</div></td>
</tr>
<tr>
<td><div align="right"><h1>Tel/Fax*:</h1></div></td>
<td><div align="left">
<label>
<input name="titulo" type="text" id="titulo" />
</label>
</div></td>
</tr>
<tr>
<td><div align="right"><h1>E-mail*:</h1></div></td>
<td><input name="email" type="text" id="email" /> </td>
</tr>
<tr>
<tr>
<td><div align="right"><h1>Consulta(¿Que Desea Saber?)*: </h1></div></td>
<td><div align="left">
<label>
<textarea name="guia" id="guia"></textarea>
</label>
</div></td>
</tr>
<td><div align="right">
<input name="restablecer" type="reset" id="restablecer" value="Restablecer" />
</div></td>
<td><div align="left">
<input name="Enviar" type="submit" id="Enviar" value="Enviar" />
</div></td>
</tr>
</table></form>
<?php
$sendTo = "[correo eliminado]";
$subject = "Informacion";
$Nombre y Apellido = $_POST["Nombre y Apellido"];
$Empresa = $_POST["Empresa"];
$Cargo = $_POST["Cargo"];
$Tel/Fax = $_POST["Tel/Fax"];
$email = $_POST["email"];
$Consulta(¿Que Desea Saber?) = $_POST["Consulta(¿Que Desea Saber?)"];
$headers .= "";
$message = "Nombre: " . $nombre . "\nTítulo de la guia: " . $titulo . "\nGuia: " . $guia . "\nEmail: " . $email;
mail($sendTo, $subject, $message, $headers);
echo "mensaje enviado correctamente";
?>
<script language="JavaScript" type="text/JavaScript">
function valida_envia(){
if(document.frm.nombre.value == "") {
alert("Por favor indique Su Nombre y Apellido");
document.frm.nombre.focus();
return 0;
}
if(document.frm.empresa.value == "") {
alert("Por favor indique Su Empresa");
document.frm.empresa.focus();
return 0;
}
if(document.frm.tel.value == "") {
alert("Por favor indique Su Tel/Fax");
document.frm.tel.focus();
return 0;
}
if(document.frm.email.value == "") {
alert("Por favor indica un E-Mail valido, para enviarle su respuesta");
document.frm.email.focus();
return 0;
}
if(document.frm.texto.value == "") {
alert("Por favor indica un Mensaje");
document.frm.texto.focus();
return 0;
}
alert("Muchas gracias por enviar el formulario");
document.frm.submit();
return true;
}
</script>
<body>
Su mensaje ha sido enviado correctamente</p>
</body>
</html>
Y ESTE ES EL CODIGO DE CSS:
* {margin:0px ; padding:0px ; border: 0px}
.centrado { text-align:center; background-color: }
p {text-align: center; background-color:}
body {background-image: url(imagenes/fondoo.png) }
img { border-style: none }
#cabecera {background-color: ; float:center ; text-align:center }
#cabecera li { list-style:none; background-color: }
a {color:white ; font-size:1.3em ; text-decoration: none }
h1 {font-size: 1.2em; color:white ; font-weight: blod ; text-decoration: none ; text-align: }
h2 {font.size: 1.5em; color:white ; font-weight: blod ; text-decoration: underline ; text-align: center}
<style type="text/css">
.aerobuttonmenu{ /*container that holds a row of aero buttons*/
overflow: hidden; /*See:
http://www.quirksmode.org/css/clearing.html */
width: auto;
background: #F7F7F7; /*menu strip background*/
border: 1px solid gray;
padding: 4px 0;
border-width: 1px 0;
}
* html .aerobuttonmenu{ /*IE6 and below hack. Set explicit strip width*/
width: 100%;
}
.aerobuttonmenu a.aero{ /*aero button CSS*/
background: transparent url('mene/menu.gif') no-repeat top left;
display: block;
float: left;
font: bold 13px Verdana, Trebuchet MS; /* Change 13px as desired */
line-height: 24px; /* This value + 8px should equal height of button background (default is 31px) */
height: 31px; /* Height of button background height */
padding-left: 10px; /* Width of left menu image */
text-decoration: none;
margin-right: 5px; /*spacing between buttons*/
filter:progid:DXImageTransform.Microsoft.Alpha(opacity=90); /*this and next two rules control opacity of buttons before hover*/
opacity: 0.9;
-moz-opacity: 0.9;
}
.aerobuttonmenu a.aero:link, .aerobuttonmenu a.aero:visited, .aerobuttonmenu a:active{
color: white; /*button text color*/
}
.aerobuttonmenu a.aero span{
background: transparent url('mene/menu.gif') no-repeat top right;
display: block;
padding: 4px 10px 6px 0; /*Set 10px here to match value of 'padding-left' value above*/
}
.aerobuttonmenu a.aero:hover{ /* Hover state CSS */
filter:progid:DXImageTransform.Microsoft.Alpha(opacity=100); /*this and next two rules control opacity of buttons during hover*/
opacity: 1;
-moz-opacity: 0.99;
}
.aerobuttonmenu a.aero:hover span{ /* Hover state CSS (for text) */
color: yellow;
}
.black a.aero{
background-image: url('mene/menu.gif');
}
.black a.aero span{
background-image: url('mene/menu.gif');
}
.aerobuttonmenu .rightsection{
float: right;
width: 100px;
position: relative;
top: 3px;
padding-right: 5px;
text-align: right;
}
.aerobuttonmenu .rightsection a{
color: navy;
}
</style>
AYUDENME PORFA!!!!!
DESDE YA MUCHAS GRACIAS!!
rODRI.-