Hi,
I am displaying images dynamically from database, lets say its name is 'myPage.php'. So there is an option for the user to edit the text and image in his page. so it goes to 'edit.php' and after the user makes changes and submits ...i am redirecting it to the 'myPage.php'.
[FONT=courier new]The problem here is ..... the images are not refreshed...it is displaying the new image after refreshing the page only....[/FONT]

      I know if we use META tag it refreshes for every x-seconds....but i want it to refresh the page only once......

 Is there any way........

    Refreshing the page might not be a true solution for your case... you should send headers so that myPage.php doesnt store images in cache... Here is a straight lift from php.net's header() manual

    <?php
    // Date in the past
    header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
    
    // always modified
    header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
    
    // HTTP/1.1
    header("Cache-Control: no-store, no-cache, must-revalidate");
    header("Cache-Control: post-check=0, pre-check=0", false);
    
    // HTTP/1.0
    header("Pragma: no-cache");
    ?> 
    

    Remember... this code snipet should be at the top of your myPage.php ... There shouldnt even be a space before <? (NO HTML output to browser befire header() )

    Good Luck
    TommYNandA

      Hi Tom,

               Thanks for ur help. Its working well in IE, but i have to use Mozilla firefox .......  in this browser its not working ......
      
               is ther anyway.......?:confused:
        Write a Reply...