i cannot use session_start because it does not like my code for resizing the images that are uploaded and i cannot use get as the page the the random number is in a iframe and has no buttons on to append it to the url.
i have tried to post the data but had no joy the variable $rand has no value when checked on the next page. the code i used for the submit button looks like this
<form name="newad" method="post" enctype="multipart/form-data" action=""> <input type="hidden" method="<?=$rand;?>" name="rand" /> <input type="file" name="broad1_image" ></td></tr> <input name="Submit" type="submit" id="image1" value="Upload image" ></td></tr> </form>
and the code i used to retrieve the value looks like this