hola como esta n jejej tengo el siguiente problema he estado creando formularios para mi web y eso ya he hecho uno que funciona a la perfeccion pero cree otro con mas cosas etc que me sale un error y creo que es por el hosting yo uso freewebs y no se porque sera ^^
[contenido no disponible]
Uploaded with ImageShack.us
ese formulario consta de dos codigos:
presupuesto.html
presupuesto.php
[contenido no disponible]
Uploaded with ImageShack.us
ese formulario consta de dos codigos:
presupuesto.html
<HTML LANG="[Spanish]">
<head>
<title>Solicitud de presupuestos - ServiciosRS</title>
<meta http-equiv="Content-Type" content="text/html; ISO-8859-1">
<META NAME="DC.Language" SCHEME="RFC1766" CONTENT="Spanish">
<META NAME="AUTHOR" CONTENT="kevin steling">
<META NAME="REPLY-TO" CONTENT="[correo eliminado]">
<LINK REV="made" href="mailto:[correo eliminado]">
<META NAME="DESCRIPTION" CONTENT="ESCRIBIR DESCRIPCION">
<META NAME="KEYWORDS" CONTENT="ESCRIBIR KEYWORDS">
<META NAME="Resource-type" CONTENT="Document">
<META NAME="DateCreated" CONTENT="Tue, 22 June 2010 22:08:00 GMT+1">
<META NAME="Revisit-after" CONTENT="30 days">
<META NAME="robots" content="ALL">
<link rel="shortcut icon" type="image/x-icon" href="../favicon.ico">
<link href="../estilo-general.css" media="screen" rel="StyleSheet" type="text/css">
<script src="../Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<script type="text/javascript">
<!--
function MM_validateForm() { //v4.0
if (document.getElementById){
var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=document.getElementById(args[i]);
if (val) { nm=val.name; if ((val=val.value)!="") {
if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
if (p<1 || p==(val.length-1)) errors+='- '+nm+' es necesario que contenga un email valido.\n';
} else if (test!='R') { num = parseFloat(val);
if (isNaN(val)) errors+='- '+nm+' es necesario que contenga un número.\n';
if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
min=test.substring(8,p); max=test.substring(p+1);
if (num<min || max<num) errors+='- '+nm+' es necesario que contenga un número '+min+' and '+max+'.\n';
} } } else if (test.charAt(0) == 'R') errors += '* '+nm+' es requerido.\n'; }
} if (errors) alert('Ha ocurrido un error:\n'+errors);
document.MM_returnValue = (errors == '');
} }
//-->
</script>
</head>
<body>
<div id="global">
<div id="cabecera">
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','800','height','145','title','cabecera','src','../imagenes/cabecera','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','../imagenes/cabecera' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="800" height="145" title="cabecera">
<param name="movie" value="../imagenes/cabecera.swf">
<param name="quality" value="high">
<embed src="../imagenes/cabecera.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="800" height="145"></embed>
</object>
</noscript></div>
<div id="navegacion">
<ul>
[*][url="../index.html"]Inicio[/url]
[*][url="../la-empresa/empresa.html"]La Empresa[/url]
[*][url="../clientes/lista-de-clientes.html"]Clientes[/url]
[*][url="../servicios/servicios.html"]Servicios[/url]
[*][url="presupuesto.html"]Presupuestos[/url]
[/list]
</div>
<div id="sub-menu">
<ul>
[*]
[*]
[*]
[*]
[/list]
</div>
<div id="cuerpo-links">
<div id="links">
[url="../index.html"]Inicio[/url]> Presupuestos
</div></div>
<div id="contenido">
<h1>Presupuestos</h1>
<h2>Solicitar presupuesto:</h2>
En esta sección podras solicitar tu presupuesto rellenando un simple formulario con datos validos. <u>[b]NOTA:[/b]</u> los campos de texto que posean un * son necesarios para poder darle un presupuesto de forma correcta.</p>
<table id="presupuesto" border="0" cellpadding="0" cellspacing="0">
<form action="presupuestos.php" method="get" enctype="multipart/form-data" name="form2">
<tr>
<td class="presupuesto">
Nombre:*
<input class="presupuesto-nombre" name="nombre" type="text" id="nombre" maxlength="50" value="" /></td></tr>
<tr>
<td class="presupuesto">Apellidos:*
<input class="presupuesto-apellidos" name="apellidos" type="text" id="apellidos" maxlength="50" value="" />
</td></tr>
<tr>
<td class="presupuesto">Email:*
<input name="email" type="text" class="presupuesto-email" id="email" value=""></td>
</tr>
<tr>
<td class="presupuesto">
Teléfono: *
<input name="telefono" type="text" class="presupuesto-telefono" id="telefono" value="">
</td>
</tr>
<tr>
<td class="presupuesto">
RIF o C.I: *
<input class="presupuesto-rif" name="rif" type="text" id="rif" maxlength="50" value="" /></td>
</tr>
<tr>
<td class="presupuesto">
Razón social:*
<input class="presupuesto-razon" name="razon" type="text" id="razon" maxlength="50" value="" /></td></tr>
<tr>
<td class="presupuesto">
Actv. Ecónomica de la Empresa:*
<textarea class="presupuesto-textarea" name="actividad" id="actividad"></textarea></td></tr>
<tr>
<td class="presupuesto">
Comentarios:
<textarea class="presupuesto-textarea" name="comentarios" id="comentarios"></textarea></td></tr>
<tr>
<td class="presupuesto">Servicios a solicitar: *
<ul>
[*]<input name="servicios" type="checkbox" value="opcion1">Analisis de Sitio de trabajo.
[*]<input name="servicios" type="checkbox" value="opcion2">Notificaciones de riesgo.
[*]<input name="servicios" type="checkbox" value="opcion3">Asesores en Seguridad y salud laboral.
[*]<input name="servicios" type="checkbox" value="opcion4">Programa de SHA.
[*]<input name="servicios" type="checkbox" value="opcion5">Normas y Politicas SHA.
[*]<input name="servicios" type="checkbox" value="opcion6">Planes de Emergencia.
[*]<input name="servicios" type="checkbox" value="opcion7">Evaluaciones del medio ambiente del trabajo.
[*]<input name="servicios" type="checkbox" value="opcion8">Registro de actividades a degradad el medio ambiente RASDA.
[*]<input name="servicios" type="checkbox" value="opcion9">Evaluaciones de medio ambiente de trabajo.
[*]<input name="servicios" type="checkbox" value="opcion10">Brigadas de emergencias.
[*]<input name="servicios" type="checkbox" value="opcion11">Indices de frecuencias de accidentes y enfermedades ocupacionales.
[*]<input name="servicios"type="checkbox" value="opcion12">Layout de seguridad.
[*]<input name="servicios" type="checkbox" value="opcion13">Comite de higiene y seguridad.
[*]<input name="servicios" type="checkbox" value="opcion14">Delegados de higiene y seguridad.
[*]<input name="servicios" type="checkbox" value="opcion15">Señalización de riesgos en el trabajo.
[/list]
</td></tr>
<tr><td align="center">
<input class="boton" name="limpiar" type="reset" id="Restablecer" value="Limpiar">
<input name="solicitar" type="submit" class="boton" id="Enviar" onClick="MM_validateForm('nombre','','R','apellidos','','R','email','','R','telefono','','RisNum','rif','','RisNum','razon','','R','actividad','','R');return document.MM_returnValue" value="Enviar">
</form>
</td></tr>
</table>
</div>
<div id="pie">
[url="../paginas/contactar.html"]Contacto[/url] |
[url="#"]Terminos y Condiciones[/url] |
[url="#"]Mapa del Sitio[/url]
</p>
</div>
<div id="copyright">
Copyright © 2010 Servicios Empresariales R.S - Web creada por: [email="[correo eliminado]"]kevin[/email]</p></div>
</div>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-17281632-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
</html>presupuesto.php
<HTML LANG="[Spanish]">
<head>
<title>Solicitud de presupuestos - ServiciosRS</title>
<meta http-equiv="Content-Type" content="text/html; ISO-8859-1">
<META NAME="DC.Language" SCHEME="RFC1766" CONTENT="Spanish">
<META NAME="AUTHOR" CONTENT="kevin steling">
<META NAME="REPLY-TO" CONTENT="[correo eliminado]">
<LINK REV="made" href="mailto:[correo eliminado]">
<META NAME="DESCRIPTION" CONTENT="ESCRIBIR DESCRIPCION">
<META NAME="KEYWORDS" CONTENT="ESCRIBIR KEYWORDS">
<META NAME="Resource-type" CONTENT="Document">
<META NAME="DateCreated" CONTENT="Tue, 22 June 2010 22:08:00 GMT+1">
<META NAME="Revisit-after" CONTENT="30 days">
<META NAME="robots" content="ALL">
<link rel="shortcut icon" type="image/x-icon" href="../favicon.ico">
<link href="../estilo-general.css" media="screen" rel="StyleSheet" type="text/css">
</head>
<body>
<div id="global">
<div id="cabecera">
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','800','height','145','title','cabecera','src','../imagenes/cabecera','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','../imagenes/cabecera' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="800" height="145" title="cabecera">
<param name="movie" value="../imagenes/cabecera.swf">
<param name="quality" value="high">
<embed src="../imagenes/cabecera.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="800" height="145"></embed>
</object>
</noscript></div>
<div id="navegacion">
<ul>
[*][url="../index.html"]Inicio[/url]
[*][url="../la-empresa/empresa.html"]La Empresa[/url]
[*][url="../clientes/lista-de-clientes.html"]Clientes[/url]
[*][url="../servicios/servicios.html"]Servicios[/url]
[*][url="presupuesto.html"]Presupuestos[/url]
[/list]
</div>
<div id="sub-menu">
<ul>
[*]
[*]
[*]
[*]
[/list]
</div>
<div id="cuerpo-links">
<div id="links">
[url="../index.html"]Inicio[/url]> Presupuestos
</div></div>
<div id="contenido">
<h2>Solicitud ha sido realizada con exito</h2>
La solicitud ha sido realizada con exito. A la brevedad tendra una respuesta [url="presupuestos.html"]Regresar[/url]</p>
<?php
$sendTo = "[correo eliminado]";
$subject = "Solicitud de Presupuesto";
$nombre = $_POST["nombre"];
$apellidos = $_POST["apellidos"];
$email = $_POST["email"];
$telefono = $_POST["telefono"];
$rif = $_POST["rif"];
$razon = $_POST["razon"];
$actividad = $_POST["actividad"];
$comentarios = $_POST["comentarios"];
$servicios = $_POST["servicios"];
$headers .= "";
$message = "\nNombre: " . $nombre . "\nApellidos: " . $apellidos . "\nEmail: " . $Email . "\nTelefono: " . $telefono . "\nRif: " . $rif . "\nRazon: " . $razon . "\nComentarios:" . $comentarios . "\nServicios:" . $servicios .;
mail($sendTo, $subject, $message, $headers);
?>
</div>
<div id="pie">
[url="../paginas/contactar.html"]Contacto[/url] |
[url="#"]Terminos y Condiciones[/url] |
[url="#"]Mapa del Sitio[/url]
</p>
</div>
<div id="copyright">
Copyright © 2010 Servicios Empresariales R.S - Web creada por: [email="[correo eliminado]"]kevin[/email]</p></div>
</div>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-17281632-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
</html>