Ver Mensaje Individual
  #1 (permalink)  
Antiguo 13/08/2010, 17:48
mixcoatltzin
 
Fecha de Ingreso: julio-2010
Ubicación: mexico DF
Mensajes: 34
Antigüedad: 13 años, 9 meses
Puntos: 0
Pregunta solicito ayuda compañeros, PARA AÑADIR SCRIPT DE REDIRECCIONAMIENTO EN PHP¡¡¡¡¡¡

lo que deseo saber es como agrego un script a un codigo php ,ya lo intente pero me marco un error es el sig:

Parse error: parse error in C:\wamp\www\prueba\recibelogin.php on line 15

el codigo php es:

<?php require_once('Connections/cn.php'); ?>
<?php
$v1=$_POST['usuario'];
$v2=$_POST['pass'];


mysql_select_db($database_cn, $cn);
$sentencia="select * from usuarios where usuario like '".$v1."' and pass like '".$v2."'";
$r=mysql_query($sentencia);


if(mysql_num_rows($r)>0)
//echo " <a href='inicioci.php'> ..::Bienvenido GRACIAS::.. </a>";
//header('location:http://127.0.0.1/prueba/inicioci.php ');
<html>
<head>
<script type="text/javascript">
function redireccionar(){
window.locationf="http://127.0.0.1/prueba/inicioci.php";
}
setTimeout ("redireccionar()", 5000); //tiempo expresado en milisegundos
</script>
</head>
<body>
<p> Espere por favor, será redireccionado en 5 segundos.</p>
</body>
</html>

else
//header('location:http://127.0.0.1/prueba/pruebalogin.php');
//echo " <a href='pruebalogin.php'> ..::USUARIO O PASSWORD INCORRECTO FAVOR DE VERIFICARLO::.. </a>";

<html>
<head>
<script type="text/javascript">
function redireccionar(){
window.locationf="http://127.0.0.1/prueba/pruebaloguin.php";
}
setTimeout ("redireccionar()", 5000); //tiempo expresado en milisegundos
</script>
</head>
<body>
<p> Espere por favor, será redireccionado en 5 segundos.</p>
</body>
</html>


?>

MI ERROR ES EN LOS SCRIPT AL NO SABER COMO INCERTARLOS YA EL ELSE Y EL FIN PHP YA NO SE IDENTIFICAN