Mike,

What I would do it make your CGI write out a redirect header only if a
certain value ISNT set.

IE

get it to redirect to the url like this

yourpage.com.au/yourpage.cgi?refresh=1

then do an if then else like this

if $refresh != 1 then
  echo <HEAD redirect='yourpage.com.au/yourpage.cgi?refresh=1'>
end if

The first time it gets there $refresh wont equal 1 therefore it will
print out the redirect statement

(PS .. this is all pseudo code :)

HTH
Matta


Michael Lake wrote:
> 
> Hi All,
> 
> I have a cgi script which creates a HTML form and I need to
> do a single forced refresh.
> 
> 1. script gets called by user submitting form which
> references a default gif.
> 2. cgi script runs doing some molecular simulations and
> creates a gif of the data
> 3. sends back the same form but with a reference to the new
> gif
> 
> Prob is that the browser shows the old gif in the cache.
> Viewing the new gif in public/tmp/ shows the new one is
> there.
> 
> If I set <HEAD refresh='10'> that would refresh every 10
> seconds but I only want one refresh.
> 
> Mike
> 
> --------------------------------------------------------------------
> Michael Lake
> University of Technology, Sydney
> Email: mailto:[EMAIL PROTECTED] Ph: 02 9514 1724 Fx: 02
> 9514 1628
> URL: http://www.science.uts.edu.au/~mikel
> Linux enthusiast, active caver and interested in anything
> technical.
> --------------------------------------------------------------------
> --
> SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
> To unsubscribe send email to [EMAIL PROTECTED] with
> unsubscribe in the text

-- 
Matt Allen                                      Linux/PHP eCommerce
Solutions
Linux Worx                                      Linux Networking
www.linuxworx.com.au                            Consulting
[EMAIL PROTECTED]                           
0413 777 771
--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to [EMAIL PROTECTED] with
unsubscribe in the text

Reply via email to