Ver Mensaje Individual
  #3 (permalink)  
Antiguo 04/07/2008, 04:52
Ferri
 
Fecha de Ingreso: julio-2008
Mensajes: 89
Antigüedad: 15 años, 10 meses
Puntos: 0
Respuesta: Una duda que me tiene loco........

A ver te pongo la primera pagina y la segunda de la web, no tengo mucho conocmiento del tema y por lo tanto veran errores en el codigo, pero me funciono un dia por eso no lo entiendo:

index.php :

<?php
session_start();
if ($_SESSION["idioma"]==""){
$idioma="cat";
$_SESSION["idioma"]=$idioma;
} else {
$idioma=$_SESSION["idioma"];
}
?>
<html>
<head>
<title>The Macabros</title>
<?php
include('css/emergente.css');
?>
</head>
<body bgcolor='#333366'>
<center>
<a href="eventos.php?idioma=cat" target='_blank'><img src="img/catalunya.jpg" border="0" height="30" width="50" title="Catal&agrave;"></a>
<a href="eventos.php?idioma=es" target='_blank'><img src="img/espana.jpg" border="0" height="30" width="50" title="Castellano"></a>
</center>
<?php
include('js/emergente.js');
?>
</body>
</html>

Despues al elegir el idioma salta a eventos.php con el idioma seleccionado, todo esto en el localhost me funciona:

<?php
session_start();
import_request_variables('GPC');
$idioma=$_SESSION["idioma"];
?>
<?php
include("cap.inc.php");
?>
<?php
$nom_arxiu="eventos.msg.$idioma.php";
include ("idioma/$nom_arxiu");
?>

<table align="center" border="5" bgcolor='#00000' cellpadding="2" cellspacing="4">
<tbody>
<tr>
<td align="center" width="250" bgcolor='#003366'><font size='2' color="#000000"><h2>Le Mirande</h2></font></a><br>
<font size='2' color="#000000"><?php echo ("$msg_mirande"); ?></font></a></td>
<td align="center" bgcolor='#003366'><img src="img/mirande2.jpg" height="200" width="420" border="0"></td>
</tr>
<tbody>