stop the caching

Reply

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

Re: stop the caching

 
0
  #11
May 8th, 2008
if i am to store the image with a random number attached to it then could i post the number on the submit button and retrieve it on the next page. would the code look something like this

  1. $rand= rand(1, 100);

to display the image on the upload page

  1. $thumb_name=$broad1name2 . $rand;

to post the random number to the next page on the submit button

  1. <form name="newad" method="post" enctype="multipart/form-data" action="">
  2. <input type="hidden" method="post" name="rand" />
  3. <input type="file" name="broad1_image" ></td></tr>
  4. <input name="Submit" type="submit" id="image1" value="Upload image" ></td></tr>
  5.  
  6. </form>

and to retrieve the random number on the next page

  1. $rand=$_POST['rand']

that way the number would be the same if the code is correct
Last edited by kevin wood; May 8th, 2008 at 11:31 am.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the PHP Forum


Views: 1432 | Replies: 10
Thread Tools Search this Thread



Tag cloud for PHP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC