Ver Mensaje Individual
  #20 (permalink)  
Antiguo 05/05/2010, 04:57
aisikauss
 
Fecha de Ingreso: junio-2009
Mensajes: 24
Antigüedad: 14 años, 10 meses
Puntos: 0
Respuesta: Pase de variables entre URL's des de un formulari en PHP

es que es muy largo no me coge, voy a ponerte solo un apr de pregutnas de cada formulario.

Cita:
<?
session_start();
?>
<html>
<head>
<link rel="shortcut icon" href="/img/favicon.ico" type="image/x-icon" />
<link rel="icon" href="/img/favicon.ico" type="image/x-icon" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="../css/estils.css" type="text/css" />

<script type="text/javascript"><!--//--><![CDATA[//><!--
startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("nav");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
}
node.onmouseout=function() {
this.className=this.className.replace(" over", "");
}
}
}
}
}
window.onload=startList;

function Valida( formulario ) {
aux = true;
msg = "";
if (formulario.nombre.value == '') {
msg = "Nombre y Apellidos\n";
aux = false;
}
if (formulario.empresa.value == '') {
msg += "Empresa\n";
aux = false;
}
if (formulario.direccion.value == '') {
msg += "Dirección\n";
aux = false;
}
if (formulario.codigo_postal.value == '') {
msg += "Código postal\n";
aux = false;
}
if (formulario.localidad.value == '') {
msg += "Localidad\n";
aux = false;
}
if (formulario.pais.value == '') {
msg += "País\n";
aux = false;
}
if (formulario.telefono.value == '') {
msg += "Teléfono\n";
aux = false;
}
if (formulario.mail.value == '') {
msg += "Mail\n";
aux = false;
}
aux2 = false;
for (i=0; i<formulario.actividad.length; i++) {
if (formulario.actividad.options[i].selected == true) {
aux2 = true;
i=formulario.actividad.length;
}
}
if (aux2 == false) {
msg += "Actividad\n";
aux == false;
}
if ((formulario.Contabilidad.checked == '') && (formulario.Facturacion.checked == '') && (formulario.Fabricacion.checked == '') && (formulario.Elaboracion.checked == '') && (formulario.CerdasP.checked == '') && (formulario.VacunoL.checked == '') && (formulario.OvinoL.checked == '') && (formulario.CaprinoL.checked == '') && (formulario.Cebo.checked == '') && (formulario.VacunoC.checked == '') && (formulario.OvinoC.checked == '') && (formulario.CerdasI.checked == '') && (formulario.Cultivos.checked == '') && (formulario.PDA.checked == '')) {
msg += "Recibir información\n";
aux = false;
}
if (aux == false) alert("Falta completar los siguientes campos:\n\n" + msg);
return aux;
}


//--><!]]></script>

<script src="../Scripts/AC_RunActiveContent.js" type="text/javascript"></script>

<script type='text/javascript' src='../js/jquery.js'></script>
<link rel="stylesheet" href="../css/project-page.css" type="text/css" />

<!-- per Project stuff -->
<script type='text/javascript' src='../js/jquery.droppy.js'></script>
<link rel="stylesheet" href="../css/droppy.css" type="text/css" />
<!-- END per project stuff -->
</head>

<body bgcolor="#EFEFEF" topmargin="0" bottommargin="0">
<table width="800" bgcolor="#FFFFFF" border="0" cellpadding="0" cellspacing="0" align="center">
<tr><td><table width="688px" bgcolor="#FFFFFF" border="0" cellpadding="0" cellspacing="0" align="center" class="borde_web">
<tr>

<td>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="5" align="center">
<tr>
<td height="191" colspan="2">
<table width="100%" border="0">
<tr>
<td><table bgcolor="#2A75B3" width="100%" height="32%" border="0" cellpadding="0" cellspacing="5" align="center">
<tr>
<td width="62%"><div align="center">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="500" height="110">
<param name="movie" value="../flash/fotos_llarg.swf" />
<param name="quality" value="high" />
<embed src="../flash/fotos_llarg.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="500" height="110"></embed></object>
</div></td>
</tr>
<tr>
<td colspan="2">
<table width="100%" height="100%" border="0" align="center">
<tr>
<td width="70%"> <table width="100%" border="0">
<tr>
<td>&nbsp;</td>
<td><table width="50%" border="0" align="right">
<tr>
<td width="31%"><div align="center"><a href="contacto.php"><img src="http://www.forosdelweb.com/f18/img/boto_espanol.gif" width="60" height="20" border="0" /></a></div></td>
<td width="28%"><div align="center"><a href="contacto_catala.php"><img src="http://www.forosdelweb.com/f18/img/boto_catala.gif" width="60" height="20" border="0" /></a></div></td>
<td width="32%"><div align="center"><a href="http://www.forosdelweb.com/f18/english_en_proves.htm"><img src="http://www.forosdelweb.com/f18/img/boto_english.gif" width="60" height="20" border="0" /></a></div></td>
<td width="10%"><a href="contacto.php"><img src="http://www.forosdelweb.com/f18/img/email_1.png" alt="Contacto" width="25" height="21" border="0" /></a></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr bgcolor="#FFFFFF">
<td> <table width="100%" height="100%" border="0" cellpadding="10" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td> <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr height="25">
<td id="titolV">Formulario 1</td>
</tr>
<tr height="10">
<td></td>
</tr>
<tr height="50" id="text11gris">
<td> Por favor complete este formulario y en breve nos pondremos
en contacto con usted:<br/>
<br/> <form action="formulari_medi_ambient2.php" method="post">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr id="text11gris">
<td colspan="2">* Nombre y Apellidos:<br/>
<input type="text" name="nombre" size="127" id="dades" /></td>
</tr>
<tr id="text11gris">
<td colspan="2">* Empresa:<br/>
<input type="text" name="empresa" size="127" id="dades" /></td>
</tr>
</table>
<br/>
<br/>
(Los campos marcados con un (*) son obligatorios)<br/>
<input type="submit" value="Continuar" name="submit" />
&nbsp;
<input type="reset" value="Borrar datos" name="reset" />
</form></td>
</tr>
<tr height="10">
<td></td>
</tr>
<tr height="20">
<td>&nbsp;</td>
</tr>
<tr valign="top">
<td align="center" style="padding:20px" valign="top">
</table>
</td>
</tr>
</table>
</td></tr></table>
</body>

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-6771772-1");
pageTracker._trackPageview();
} catch(err) {}</script>

</html>
de esta pagina pasa a la siguiente