aqui la primera pagina donde envio las variables al rellenar un formulario de registro de usuarios la primera linea me recoge la variable que quiero enviar que me viene de otra pagina y funciona bien ya que la puedo imprimir y se ve en la barra de direcciones correctamente .
Código PHP:
Ver original
<?php function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { if (PHP_VERSION < 6) { } $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue); switch ($theType) { case "text": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "long": case "int": break; case "double": break; case "date": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "defined": $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue; break; } return $theValue; } } ?> <?php // *** Validate request to login to this site. } $loginFormAction = $_SERVER['PHP_SELF']; $_SESSION['PrevUrl'] = $_GET['accesscheck']; } $loginUsername=$_POST['email_user']; $password=$_POST['password']; $MM_fldUserAuthorization = ""; $MM_redirectLoginSuccess = "/blueberryswebtiendas/webtiendas/plantilla/final_cliente_registrado.php?usuario=$loginUsername&tienda=$tienda"; $MM_redirectLoginFailed = "/blueberryswebtiendas/webtiendas/plantilla/error_datos.php"; $MM_redirecttoReferrer = false; $LoginRS__query=sprintf("SELECT email_user, pasword_user_invitado FROM usuario_user WHERE email_user=%s AND pasword_user_invitado=%s", GetSQLValueString($loginUsername, "text"), GetSQLValueString($password, "text")); if ($loginFoundUser) { $loginStrGroup = ""; //declare two session variables and assign them $_SESSION['MM_Username'] = $loginUsername; $_SESSION['MM_UserGroup'] = $loginStrGroup; $MM_redirectLoginSuccess = $_SESSION['PrevUrl']; } } else { } } ?>
y eta otra pagina donde recojo la variable pero en la barra solo me muestra la primera con su resultado y en el caso de la segunda me muestra el nombre que le doy a la variable que es tienda pero no su resultado es de cir sale "tienda =" a nada vaya y no veo el fallo en la primera pagina la envió así
Código PHP:
Ver original
$MM_redirectLoginSuccess = "/blueberryswebtiendas/webtiendas/plantilla/final_cliente_registrado.php?usuario=$loginUsername&tienda=$tienda";