fullyloaded Posted September 5, 2006 Share Posted September 5, 2006 hii was wondering if anyone can help me?i have a php/html website and when i goto upload a image it wont show up until i hit the refresh button on my webpage any idea how i can fix this? here are the 2 pages from my site hope some one can help thanks...[attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/19826-php-html-website/ Share on other sites More sharing options...
roopurt18 Posted September 5, 2006 Share Posted September 5, 2006 They don't show up until you refresh the page because the browser is displaying the old, cached version of the image. You can force refresh the image by adding a ?mktime() to the end of the image filename.echo '<img src="path/path2/file.ext?' . mktime() . '" alt=""/>';It's not the most recommended method however, since it will always refresh the image and not just when it's new. Quote Link to comment https://forums.phpfreaks.com/topic/19826-php-html-website/#findComment-86736 Share on other sites More sharing options...
fullyloaded Posted September 5, 2006 Author Share Posted September 5, 2006 hithanks but can this code[code]<meta content="30; url=http://mhtit.hypermart.net/js/refresh.html" http-equiv=refresh>[/code] be put into this code?[code] <input name="Submit" type="submit" class=BlackSlim11 id="Submit" value="Save">[/code] so the refresh will be in the button and not auto refresh? thanks... Quote Link to comment https://forums.phpfreaks.com/topic/19826-php-html-website/#findComment-86770 Share on other sites More sharing options...
AdRock Posted September 5, 2006 Share Posted September 5, 2006 What is your form action? Quote Link to comment https://forums.phpfreaks.com/topic/19826-php-html-website/#findComment-86783 Share on other sites More sharing options...
fullyloaded Posted September 5, 2006 Author Share Posted September 5, 2006 hiits a dating website and its for the members profile so they can upload there image but the new image wont show until you refresh the page if you dont refresh the page the old image will show until you do i hope thats what your asking im new to this thanks.. Quote Link to comment https://forums.phpfreaks.com/topic/19826-php-html-website/#findComment-86786 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.