![Neurótico](http://static.forosdelweb.com/fdwtheme/images/smilies/scared.png)
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> </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> </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>
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']);
................
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