I've got an image verification code that doesn't seem to be working. It is returning a broken image so therefore isn't working 🙁. If I go directly to the script page i.e veryimage.php it gives me this error.
Undefined variable: sessioncode in /www/verifyimage.php on line 8
<?
session_start ();
session_register ('sessioncode');
$im = imagecreate (55, 15);
$bg = imagecolorallocate ($im, 255, 255, 255);
$textcolor = imagecolorallocate ($im, 0, 0, 255);
imagecolortransparent ($im, $bg);
imagestring ($im, 5, 0, 0, substr (strtoupper (md5 ('Mytext' . $sessioncode)), 0, 6), $textcolor);
imagepng ($im);
exit ();
?>
That is what I have, can anybody explain the problem to me?
Thankyou.