Jump to content

on confirm return to previous page and refresh


maxat

Recommended Posts

Hi
   
I have a form with an image inside and delete option. When I select delete it redirects to delete.php and confirms delete if it is successful (all in php) and there is an OK button that should redirect to previous page without deleted image. I guess it possible only in Javascript but I dont know how to do it.  I tried onClick="history.back() but still  returns page with deleted image.

  If you have any idea how to do it, will be highly appreciated. and sorry for my bad english.
sorry, I miss understood your question

You need to set the meta tag so the page is not saved in the browser cach
[code]
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<META HTTP-EQUIV="EXPIRES" CONTENT="Mon, 22 Jul 2002 11:12:01 GMT">
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
[/code]

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.