Foros del Web » Programando para Internet » PHP »

Pagina con 3 formularios el 3ro no lo puedo ver

Estas en el tema de Pagina con 3 formularios el 3ro no lo puedo ver en el foro de PHP en Foros del Web. Hola pues resulkata que esta pagian esta en 2 idiomas ademas de que en la mismoa pagina debo tener el login, recordar y registro de ...
  #1 (permalink)  
Antiguo 01/05/2008, 10:30
 
Fecha de Ingreso: abril-2008
Mensajes: 9
Antigüedad: 16 años
Puntos: 0
Pagina con 3 formularios el 3ro no lo puedo ver

Hola pues resulkata que esta pagian esta en 2 idiomas ademas de que en la mismoa pagina debo tener el login, recordar y registro de ususario, llevos variso dias tratando de hacer qwue se vea el 3 formulario que es el del registro y pues no he podido espero me puedar ayudar


<?php require_once('Connections/mgold.php');
$midioma_objetos = $_GET['idioma'];

// *** Validate request to login to this site.
if (!isset($_SESSION)) {
session_start();
}

$loginFormAction = $_SERVER['PHP_SELF']."?idioma=".$_GET['idioma']."&opcion=".$_GET['opcion']."";
if (isset($_GET['accesscheck'])) {
$_SESSION['PrevUrl'] = $_GET['accesscheck'];
}

if ((isset($_POST["MM_login"])) && ($_POST["MM_login"] == "form1")) {
$loginUsername=$_POST['usuario'];
$password=$_POST['contrasena'];
$MM_fldUserAuthorization = "";
$MM_redirectLoginSuccess = "home.php?idioma=" . $_GET['idioma'] . "&usuario=$loginUsername";
$MM_redirectLoginFailed = "login1.php?idioma=" . $_GET['idioma'] . "&opcion=" . $_GET['opcion'] ."";
$MM_redirecttoReferrer = false;
mysql_select_db($database_mgold, $mgold);

$LoginRS__query=sprintf("SELECT username, password FROM uuarios WHERE username='%s' AND password='%s'",
get_magic_quotes_gpc() ? $loginUsername : addslashes($loginUsername), get_magic_quotes_gpc() ? $password : addslashes($password));

$LoginRS = mysql_query($LoginRS__query, $mgold) or die(mysql_error());
$loginFoundUser = mysql_num_rows($LoginRS);
if ($loginFoundUser) {
$loginStrGroup = "";

//declare two session variables and assign them
$_SESSION['MM_Username'] = $loginUsername;
$_SESSION['MM_UserGroup'] = $loginStrGroup;

if (isset($_SESSION['PrevUrl']) && false) {
$MM_redirectLoginSuccess = $_SESSION['PrevUrl'];
}
header("Location: " . $MM_redirectLoginSuccess );
}
else {
header("Location: ". $MM_redirectLoginFailed );
}
}

mysql_select_db($database_mgold, $mgold);
$query_objetos = sprintf("SELECT * FROM objetos_login WHERE objetos_login.idioma='%s'", $midioma_objetos);
$objetos = mysql_query($query_objetos, $mgold) or die(mysql_error());
$row_objetos = mysql_fetch_assoc($objetos);
$totalRows_objetos = mysql_num_rows($objetos);

mysql_select_db($database_mgold, $mgold);
$query_princ = "SELECT * FROM objetos_princ where idioma='".$midioma_objetos."'";
$princ = mysql_query($query_princ, $mgold) or die(mysql_error());
$row_princ = mysql_fetch_assoc($princ);
?>

<html>
<head>
<title>Velas Club Members</title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
background-color: #A9A381;
}
th {
color:#993300;
}
-->
</style>
<link href="estilos.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
a:link {
color: #FFFFFF;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #FFFFFF;
}
a:hover {
text-decoration: underline;
color: #FFFFFF;
}
a:active {
text-decoration: none;
}
.Estilo1 {
color: #336633;
font-weight: bold;
font-style: italic;
font-family: 'Century Schoolbook';
font-size: 18px;
}
.Estilo3 {
font-size: 14px;
font-weight: bold;
font-style: italic;
}
.Estilo7 {font-size: 20px}
-->
</style><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>
<body>
<table width="770" height="42" border="0" align="center">
<tr>
<th height="38" scope="col">
<table width="30%" border="0" align="right">
<tr>
<td width="29%" valign="bottom" ><span id="splogin" onMouseOver="splogin.style.cursor='pointer';splogi n.style.color='#0033FF'" onmouseout="splogin.style.color='#000000'" style="cursor:default" onClick="login.style.visibility='visible';forget.s tyle.visibility='hidden'"><font color="#993300" size="1" face="Geneva, Arial, Helvetica, sans-serif"><?php echo $row_princ['td_login']; ?></font></span></td>
<td width="30%" valign="bottom" ><span id="spremem" onMouseOver="spremem.style.cursor='pointer';spreme m.style.color='#0033FF'" onmouseout="spremem.style.color='#000000'" style="cursor:default" onClick="login.style.visibility='hidden';forget.st yle.visibility='visible'"><font color="#993300" size="1" face="Geneva, Arial, Helvetica, sans-serif"><?php echo $row_princ['td_remember']; ?></font></span></td>
<td width="30%" valign="bottom" ><span id="spregis" onMouseOver="spregis.style.cursor='pointer';spregi s.style.color='#0033FF'" onmouseout="spregis.style.color='#000000'" style="cursor:default" onClick="login.style.visibility='hidden';forget.st yle.visibility='visible'"><font color="#993300" size="1" face="Geneva, Arial, Helvetica, sans-serif"><?php echo $row_princ['td_register']; ?></font></span></td>
</tr>
</table></th>
</tr>
</table>
<table width="770" height="490" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<th height="490" align="center" valign="top" scope="col"><table width="100%" height="225" border="0" cellpadding="0" cellspacing="0">
<tr>
<th height="225" align="center" valign="top" scope="col">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="770" height="220" align="baseline">
<param name="movie" value="flash/intro.swf"/>
<param name="quality" value="high" /><param name="SCALE" value="exactfit">
<embed src="flash/intro.swf" width="770" height="220" align="baseline" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" scale="exactfit" ></embed>
</object> </th>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<th height="280" align="center" valign="top" scope="col">
<table width="270" border="0" style="table-layout:fixed">
<tr>
<th width="900" height="50" class="Estilo1" scope="col"><div align="center" class="Estilo1 Estilo7"><?php echo $row_objetos['Bienvenido']; ?></div></th>
</tr>
</table>
<table style="table-layout:fixed" border="0" class="tit_login">
<tr>
<th width="495" valign="middle" style="font-Family:'Century Schoolbook';font-size:13px;" scope="col"><span class="Estilo3"><?php echo $row_objetos['tit_pag']; ?></span></th>
</tr>
</table>
<!--**************************** Div para el login -->
<p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p>
<form ACTION="" method="POST" name="form1" id="form1">
<script>
var ancho=document.body.offsetWidth;
left = (ancho-350)/2;
document.write('<div id="login" style="position:absolute; width:300; top:350px; left:'+left+'px; visibility:hidden" align="center">');
</script>
<p>&nbsp;</p>
<table style="table-layout:fixed" border="0" class="txt_login" >
<tr>
<th align="right" valign="middle" ><?php echo $row_objetos['usuario']; ?></th>
<th align="left" valign="middle" ><input name="usuario" type="text" class="formulario" id="usuario" size="10" maxlength="10" /></th>
</tr>
</table>
<table style="table-layout:fixed" border="0" class="txt_login" >
<tr>
<th align="right" valign="middle" ><?php echo $row_objetos['contrasena']; ?></th>
<th align="left" valign="middle" ><input name="contrasena" type="password" class="formulario" id="contrasena" size="10" maxlength="10" /></th>
</tr>
</table>
<table style="table-layout:fixed" border="0" class="formulario">
<tr>
<th width="182" height="37" align="center" valign="bottom" scope="col">
<input name="Submit" type="submit" class="formulario" value="<?php echo $row_objetos['boton']; ?>" />
<input name="idioma" type="hidden" id="idioma" value="<?php echo $_POST['idioma']; ?>" />
<input name="idioma" type="hidden" id="opcion" value="<?php echo $_POST['opcion']; ?>" />
<input name="MM_login" type="hidden" id="MM_login" value="form1" /> </th></tr>
</table>
</div>
</form>

Esta es la primera parte ya que no cupo todo
  #2 (permalink)  
Antiguo 01/05/2008, 10:31
 
Fecha de Ingreso: abril-2008
Mensajes: 9
Antigüedad: 16 años
Puntos: 0
Pagina con 3 formularios el 3ro no lo puedo ver 2da parte

<!--******************************* Div para el remember -->
<form action="envia_contrasena.php?idioma=<?php echo $_POST['idioma']; ?>" method="post" name="form2" target="_self" id="form2">
<script>
document.write('<div id="forget" style="position:absolute; width:300; top:350px; left:'+left+'px; visibility:hidden" align="center">');
</script>
<p>&nbsp;</p>
<table style="table-layout:fixed" border="0" class="txt_login">
<tr>
<table style="table-layout:fixed" border="0" class="txt_login">
<tr>
<th width="182" height="37" align="center" ><?php echo $row_objetos['olvidaste']; ?>&nbsp;
</th>

</tr>
</table>
<table style="table-layout:fixed" border="0" class="txt_login">
<tr>
<th align="left" scope="col"><?php echo $row_objetos['email']; ?><input name="email" type="text" class="formulario" id="email" size="27" maxlength="150" /></th>
</tr>
</table>
<table style="table-layout:fixed" border="0" class="txt_login">
<tr>&nbsp;
<th align="center" valign="middle" scope="col"><input name="Submit2" type="submit" class="formulario" value="<?php echo $row_objetos['enviar']; ?>" />
<input name="usuario" type="hidden" id="usuario" value="<?php echo $row_objetos['usuario']; ?>" />
<input name="contrasena" type="hidden" id="contrasena" value="<?php echo $row_objetos['contrasena']; ?>" /></th>
</tr>
</table>
<th width="20" align="left" valign="middle" scope="col">&nbsp;</th>
</tr>
</table>

<div>
</form>
<!--**************************** Div para register -->
<form action= "register.php?idioma=<?php echo $_POST['registro']; ?>" method="post" target="_self"name="form3" id="form3">
<script>
var ancho=document.body.offsetWidth;
left = (ancho-350)/2;
document.write('<div id="register" style="position:absolute; width:300; top:350px; left:'+left+'px; visibility:hidden" align="center">');
</script>
<table width=277 height="157" border=0 cellpadding=0 cellspacing=0 cols=2><?php echo $row_uuarios['username']; ?>
<tr>
<td width=170 height="32"><?php echo $row_registro['username']; ?></td>
<td width=107>
<input name="username" type="hidden" class="formulario" id="username" size="15" maxlength="15" />
<tr>
<td width=170 height="32"><?php echo $row_registro['password']; ?></td>
<td width=107>
<input name="password" type="hidden" class="formulario" id="password" size="15" maxlength="15" />
</td>
</tr>
<tr>
<td width=170 height="32"><?php echo $row_registro['password']; ?></td>
<td width=107>
<input name="cpassword" type="hidden" class="formulario" id="cpassword" size="15" maxlength="15" />
</td>
</tr>
<tr>
<td width=170 height="34"><?php echo $row_registro['name']; ?></td>
<td width=107><input name="name" type="hidden" class="formulario" id="name" size="15" maxlength="15" />
</td>
</tr>
<tr>
<td width=170 height="34"><?php echo $row_registro['zipcode']; ?></td>
<td width=107>
<input name="zipcode" type="hidden" class="formulario" id="zipecode" size="15" maxlength="15" />
</td>
</tr>
<tr>
<td width=170 height="33"><?php echo $row_registro['number']; ?></td>
<td width=107>
<input name="number" type="hidden" class="formulario" id="number" size="15" maxlength="15" />
</td>
</tr>
<tr>
<td width=170 height="33"><?php echo $row_registro['email']; ?></td>
<td width=107><input name="number" type="hidden" class="formulario" id="number" size="15" maxlength="15" />
</td>
</tr>
<tr>
<td colspan=2 align=center>
<input name="Submit3" type="submit" class="formulario" value="<?php echo $row_registro['boton']; ?>" />
<input name="registro" type="hidden" id="idioma" value="<?php echo $_POST['registro']; ?>" />
<input name="registro" type="hidden" id="opcion" value="<?php echo $_POST['opcion']; ?>" />
<input name="MM_login" type="hidden" id="MM_login" value="form3" />

</td>
</tr>
</table>
</form>



</body>
</html>
<?php
switch ($_GET['opcion'])
{
case "1": echo '<script>login.style.visibility="visible";forget.s tyle.visibility="hidden"</script>';break;
case "2": echo '<script>login.style.visibility="hidden";forget.st yle.visibility="visible"</script>';break;
case "3": echo '<script>login.style.visibility="hidden";forget.st yle.visibility="visible"</script>';break;
}
mysql_free_result($objetos);
mysql_free_result($princ);
mysql_free_result($registro);
?>


De antemano mil gracias
  #3 (permalink)  
Antiguo 01/05/2008, 11:42
 
Fecha de Ingreso: noviembre-2005
Mensajes: 222
Antigüedad: 18 años, 5 meses
Puntos: 2
Re: Pagina con 3 formularios el 3ro no lo puedo ver

te falta cerrar el ultimo div, no?
__________________
"Prefiero callar como un tonto, que hablar para confirmarlo"
Espectacular Portal en crecimiento: Artículos http://www.blorgia.com
  #4 (permalink)  
Antiguo 01/05/2008, 13:23
 
Fecha de Ingreso: abril-2008
Mensajes: 9
Antigüedad: 16 años
Puntos: 0
Re: Pagina con 3 formularios el 3ro no lo puedo ver

Si cierro me aparece un mensaje de eeror de etiqueta es por ello que lo omiti


Gracias
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 08:10.