The form code (part of it):
Code: Select all
session_start();
require ("php/XXX/secFunctions.php");
$_SESSION['sessionString'] = randomString(5);
<form action="<? echo $_SERVER["PHP_SELF"]; ?>?id=gbadd" method="POST">
<img width="150" height="100" border="0" src="image.php?random='.microtime(true).'" alt=”secImage”> <br />
<input size="50" maxlength="60" type="text" name="sec"><br />
<?php echo "session:"; Print_r ($_SESSION); ?>
</form>Code: Select all
session_start();
require ("php/XXX/secFunctions.php");
createSecImage(150, 100, 100, $_SESSION['sessionString']);The index file starts with a session_start(); as well. I don't know what the problem might be, although i've searched several sites. The first solution was ?random='.microtime(true). and then it worked, but after I renamed the image.php file to image.php (instead of test.php) it didn't work anymore
Sorry if the english isn't as good as it should be. It's not my first language. I hope I can make myself clear with this muttering