Código PHP:
<?
session_start();
$text = rand(10000,99999);
$_SESSION['logymail_vercode'] = $text;
$height = 25;
$width = 65;
$image_p = imagecreatetruecolor($width, $height);
$white = imagecolorallocate($image_p, 255, 255, 255);
$black = imagecolorallocate($image_p, 0, 0, 0);
$font_size = 14;
imagestring($image_p, $font_size, 5, 5, $text, $white);
imagejpeg($image_p, null, 80);
?>
Código HTML:
<form action="submit.php" method="post"> Enter Code <img src="code.php"><input type="text" name="vercode" /><br> <input type="submit" name="Submit" value="Submit" /> </form>
Código:
¿Que hay mal? SaludosÿØÿà
Mi página esta hecha con web modulares por lo tanto consta de header.php, footer.php y la plantilla por default.
SOLUCIONADO: