Foros del Web » Programando para Internet » PHP »

ayuda con variables

Estas en el tema de ayuda con variables en el foro de PHP en Foros del Web. tengo el siguiente codigo <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <script type="text/javascript"> <!-- <!-- <!-- var thesites= new Array() thesites[0]="formataller.php"; thesites[1]="formapreviabilidad.php"; thesites[2]="formaviabilidad.php"; var ...
  #1 (permalink)  
Antiguo 01/10/2004, 13:33
 
Fecha de Ingreso: septiembre-2004
Mensajes: 179
Antigüedad: 19 años, 6 meses
Puntos: 0
ayuda con variables

tengo el siguiente codigo

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/javascript">
<!--
<!--
<!--
var thesites= new Array()
thesites[0]="formataller.php";
thesites[1]="formapreviabilidad.php";
thesites[2]="formaviabilidad.php";

var gosite="";
function geturl(thenum)
{
gosite=thesites[thenum];
}
function gothere()
{
if ((gosite==null) || (gosite==""))
alert("Por favor seleccione una respuesta");
else
window.location=gosite;
}
//-->
function changeDiv(the_div,the_change)
{
var the_style = getStyleObject(the_div);
if (the_style != false)
{
the_style.display = the_change;
}
}

function hideAll1()
{
changeDiv("taller2","none");
changeDiv("previabilidad1","none");
changeDiv("previabilidad2","none");
changeDiv("viabilidad1","none");
changeDiv("viabilidad2","none");
changeDiv("viabilidad3","none");
}
function hideAll2()
{
changeDiv("previabilidad1","none");
changeDiv("previabilidad2","none");
changeDiv("viabilidad1","none");
changeDiv("viabilidad2","none");
changeDiv("viabilidad3","none");
}
function hideAll3()
{
changeDiv("previabilidad2","none");
changeDiv("viabilidad1","none");
changeDiv("viabilidad2","none");
changeDiv("viabilidad3","none");
}
function hideAll4()
{
changeDiv("viabilidad1","none");
changeDiv("viabilidad2","none");
changeDiv("viabilidad3","none");
}
function hideAll5()
{
changeDiv("viabilidad2","none");
changeDiv("viabilidad3","none");
}
function hideAll6()
{
changeDiv("viabilidad3","none");
}
function getStyleObject(objectId) {
if (document.getElementById && document.getElementById(objectId)) {
return document.getElementById(objectId).style;
} else if (document.all && document.all(objectId)) {
return document.all(objectId).style;
} else {
return false;
}
}
// -->

function MM_popupMsg(msg) { //v1.0
alert(msg);
}

function MM_findObj(n, d) { //v3.0
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_validateForm() { //v3.0
var i,p,q,nm,test,num,min,max,errors='',args=MM_valida teForm.arguments;
for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(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+' must contain an e-mail address.\n';
} else if (test!='R') { num = parseFloat(val);
if (val!=''+num) errors+='- '+nm+' must contain a number.\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+' must contain a number between '+min+' and '+max+'.\n';
} } } else if (test.charAt(0) == 'R') errors += '- '+nm+' \n'; }
} if (errors) alert('Faltaron los siguientes campos:\n'+errors);
document.MM_returnValue = (errors == '');
}
//-->



</script>
<style type="text/css">
<!--
.numerales { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9pt; font-style: normal; font-weight: normal; font-variant: normal}
-->
</style>
</head>


<body bgcolor="#FFFFFF">
<form method="get" action="">

<font face="Verdana, Arial, Helvetica, sans-serif" size="2">Diligenciado por
(VP Comercial):</font>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2"> Nombres:
<input type="text" name="Nombres" size="50">
</font></p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Apellidos:
<input type="text" name="Apellidos" size="50">
</font></p>



<p> <font face="Verdana, Arial, Helvetica, sans-serif" size="2">
<input type="button" name="Submit" value="Enviar" onClick="gothere();MM_validateForm('Nombres','','R ','Apellidos','','R');return document.MM_returnValue">
<input type="reset" name="Submit2" value="Limpiar Forma">
</font></p>






</form>
</body>
</html>
y aunque este no es todo el codio pero lo que necesito es pasar la variables a cualqiera de las tres paginas que hay dependiendo de la cantidad de opciiones que el usuario escoga

alguien sabe que debo hacer
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 06:30.