Ver Mensaje Individual
  #5 (permalink)  
Antiguo 20/12/2005, 03:52
karpoj23
 
Fecha de Ingreso: diciembre-2003
Ubicación: Málaga
Mensajes: 495
Antigüedad: 20 años, 5 meses
Puntos: 0
Cuando llama a php desde flash le tengo puesto el siguiente codigo:

Cita:
$user=$_POST[usuario];
$pass=$_POST[pass];
$idioma_rec=$_POST[idio];
$idioma_get=$ido;
echo $idioma_get;
//$lang_id=idioma($idioma_rec);

$lang_id=$idioma_get;
$b=$idioma_get;

if ((!empty($user)) || (!empty ($pass)))
{
$sql="select * from tabla where pass='$pass' and usuario='$user'";
if (!$res=send_sql($db,$sql))
{
echo "No se ha podido realizar la consulta";
exit(0);
}

$rows = mysql_num_rows ($res);
while($result = mysql_fetch_array ($res))
{
$b=$result[SLLANG];
}

if ($rows==1)
{

$txt_member=translate_text("MEMBERS", $lang_id, 0);
$txt_login=translate_text("LOGIN", $lang_id, 0);
$txt_ref_no=translate_text("Numero Ref. No.", $lang_id);
$txt_pass=translate_text("Password", $lang_id);
$btn_entrar=translate_text("Enter", $lang_id, 0);
echo "&validar=si&u1=$user&u2=$pass&idioma=$b&";
}
}
else
{
$txt_member=translate_text("MEMBERS", $lang_id, 0);
$txt_login=translate_text("LOGIN", $lang_id, 0);
$txt_ref_no=translate_text("Numero Ref. No.", $lang_id);
$txt_pass=translate_text("Password", $lang_id);
$btn_entrar=translate_text("Enter", $lang_id, 0);
echo "&validar=no&u1=mal&u2=mal&idioma=$b&txt_ref_no=$t xt_ref_no&txt_pass=$txt_pass&txt_member=$txt_membe r&txt_login=$txt_login&btn_entrar=$btn_entrar&";
}
?>
Y tengo la pagina Index.htm q tiene lo siguiente:

Cita:
<HTML>
<HEAD>
<TITLE>javascript_to_flash</TITLE>
</HEAD>
<?php
include "functions1.php";
echo <<<eod
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="200" height="300" id="menu_izq" align="middle">
<param name="allowScriptAccess" value="sameDomain"/>
<param name="movie" value="menu_izq.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#000033" />
<embed src="menu_izq.swf" quality="high" bgcolor="#000033" width="200" height="300" name="menu_izq" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" swLiveConnect="true">
</embed></object>
eod;

/*echo "<br><a href='$PHP_SELF?ido=1'>Idioma 1</a><br>";
echo "<a href='$PHP_SELF?ido=3'>Idioma 2</a><br>";
echo "<a href='$PHP_SELF?ido=7'>Idioma 3</a><br>";
echo "<a href='$PHP_SELF?ido=9'>Idioma 4</a><br>";
echo "<a href='$PHP_SELF?ido=10'>Idioma 5</a><br>";
echo "<a href='$PHP_SELF?ido=13'>Idioma 6</a>";*/
?>
</body>
</html>