Ver Mensaje Individual
  #1 (permalink)  
Antiguo 23/08/2007, 16:51
Avatar de sandrox23
sandrox23
 
Fecha de Ingreso: abril-2005
Ubicación: Lima - Peru
Mensajes: 274
Antigüedad: 19 años
Puntos: 0
Exclamación problema en session con iframes

Hola amigos, tengo este problema con session captcha

Les explico yo tengo este script

form.php
Código PHP:
<form action="action.php" method="post" name="regform" id="regform">
<
table cellpadding="0" cellspacing="0" border="0">
<
tr>
<
td class="login">Username:</td>
<
td>&nbsp;&nbsp;</td>
<
td colspan="3" class="login">Codigo:</td>
</
tr>
<
tr>
<
td><input type="text" name="char" class="fields" style="width:118px;" /></td>
<
td></td>
<
td><input type="text" maxLength="10" name="image" class="fields" style="width:118px;" /></td>
<
td>&nbsp;&nbsp;</td>
<
td><input type="image" name="Login" src="/_img/button_login.gif" alt="Ver" />
<
tr>
<
td class="login">
<
img src="image.php" border="0">
</
td>
<
tr>
</
table>
</
td>
</
form
action.php
Código PHP:
<?php
session_start
(); //Start the session
//print $_SESSION['captcha'];

$session $_SESSION['captcha']; //Define the session we set in image.php
$image $_POST['image']; //Define the post
$image md5($image); //MD5 encrypt the post

$char stripslashes($_POST['char']);

................
cuando ingreso a mi dominio www.xxx.com/form.php me funciona el script perfectamente.

pero cuando ingreso desde otro host mediante un <iframe src="http://www.xxx.com/form.php" AllowTransparency></iframe> ya no me funciona el script, creo q tiene q ver con la session_start();

Espero su ayuda es urgente corregir esto.

Gracias
__________________
diseniando ........