Ver Mensaje Individual
  #1 (permalink)  
Antiguo 05/06/2007, 11:03
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 Captcha con Iframe

Hola amigos, tengo un problema con la session en captcha, la pagina que contiene el captcha es :

form.php
Código PHP:
<form method="post" action="process.php">
<
img src="image.php" border="0"><br />
<
input type="text" name="image"><br />
<
input type="submit" value="Submit">
</
form
process.php
Código PHP:
<?php
session_start
(); //Start the session
$session $_SESSION['captcha']; //Define the session we set in image.php
$image $_POST['image']; //Define the post
$image md5($image); //MD5 encrypt the post

if ($session == $image){ //if they have put the right text in
echo "Correct!";
}else{
echo 
"Incorrect!";
}
?>
Pero yo uso mis paginas x iframe y al colocarlos en iframe no me reconoce la session, al hacer la validacion me sale incorrecta 100pre

Código PHP:
<iframe marginwidth="0" marginheight="0" scrolling="no" frameborder=0 src="....../form.php" width="453" height="250"> </iframe
que puedo hacer para solucionar esto
__________________
diseniando ........