User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 391,976 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,138 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting

$_COOKIES

Join Date: Feb 2008
Posts: 288
Reputation: kevin wood is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 1
kevin wood's Avatar
kevin wood kevin wood is offline Offline
Posting Whiz in Training

$_COOKIES

  #1  
May 9th, 2008
is it possible to generate a random number and then use cookies to pass this number to other page?

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

$rand= $_POST['rand'];
AddThis Social Bookmark Button
Reply With Quote  
All times are GMT -4. The time now is 9:30 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC