Ver Mensaje Individual
  #5 (permalink)  
Antiguo 04/03/2010, 06:47
kesm372
 
Fecha de Ingreso: marzo-2010
Mensajes: 18
Antigüedad: 14 años, 2 meses
Puntos: 0
Respuesta: problema con <a href>

aaa que facil era, ya lo logré, no habia tenido en cuenta que aca era get en ves de post... y pos la clave estaba en index.php, asi quedo mi codigo (se aceptan sugerencias :D):

index.php:

Código:
<?php
$ENLACE=$_GET["link"];
$CARGAR="http://localhost/pruebas/1.php";
if($ENLACE=="1"){
$CARGAR="http://localhost/pruebas/1.php";
}else if($ENLACE=="2"){
$CARGAR="http://localhost/pruebas/2.php";
}else if($ENLACE=="3"){
$CARGAR="http://localhost/pruebas/3.php";
}
?>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>pagina principal</title>
</head>
<table>
<tr>
<td><a href="http://localhost/pruebas/index.php?link=1&">uno</td>
</tr>
<tr>
<td><a href="http://localhost/pruebas/index.php?link=2&">dos</td>
</tr>
<tr>
<td><a href="http://localhost/pruebas/index.php?link=3&">tres</td>
</tr>
<tr>
<th width="750" height="700" valign="top" scope="col"><iframe name="frame" frameborder="1" width=100% height=100% frameborder=0 scrolling="no" marginwidth="0" marginheight="0" src="<?php echo $CARGAR ?>" >please use a browser that supports frames</iframe></th>
</tr>
</table>
<body>
</body>
</html>
1.php:

Código:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>pagina 1</title>
</head>
<table>
<tr>
<td>este es el enlace 1</td>
</tr>
</table>
<body>
</body>
</html>
así, puedo poner mis 1.php, 2.php y 3.php, en una ubicación bien cubierta, con una URL complicada, para que los usuarios no puedan acceder directamente, ahora, hay manera de que los usuarios puedan saber esas rutas?? creo qu eno verdad? si no me equivoco porque las rutas está en php (side server), verdad??