the images, rather than being updated when I click the submit button in my form, are only being updated when I hit the refresh button

You haven't shown your form, in particular what action URI it submits to, and how you're handling the respective request on the server side. Also, under some circumstances, it could make a difference whether you use the HTTP method GET or POST.

First step would be to look in the webserver's access log to see if the request is actually coming in and what the server's HTTP response code is...

Update: or is your problem rather that you modify the images' content, but try to serve them under the same name/URI?  In that case, appending some dummy parameter to the image URIs, which changes from request to request (e.g. the current time)

$image_web_path.'imagefile6.gif?t='.time()

could get you around unwanted caching...


In reply to Re: Web server cache-ing? by almut
in thread Web server cache-ing? by campbell

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.