473,322 Members | 1,719 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Form submit problem in IE

I have a simple form that is giving me grief in IE (6) and has me
stumped. It works fine with Mozilla. No JavaScript involved.

Visit http://www.softouch.on.ca/cgi-bin/confirmation_ie.pl

Other forms I have work fine with IE & Mozilla. For some reason the
submit button on this form is not working properly. It DOES submit the
form as evidenced by the date/time change. What it should do on an empty
submit is generate a new image. But it presents the same image
repeatedly. Some would say that this is obviously a Perl problem, but if
so, why does it work in Mozzila?

Refreshing the screen seems to be the only way to generate a new image,
but of course that is not the point of the form.

Anyone shed any light on this one? Much appreciated.
--
Amer Neely
Home of Spam Catcher
W: www.softouch.on.ca
E: tr****@softouch.on.ca
Perl | MySQL | CGI programming for all data entry forms.
"We make web sites work!"
Mar 31 '06 #1
3 2316
On 31/03/2006 13:41, Amer Neely wrote:

[snip]
Visit http://www.softouch.on.ca/cgi-bin/confirmation_ie.pl
[snip]
For some reason the submit button on this form is not working
properly. It DOES submit the form as evidenced by the date/time
change.
Then the submit button works properly then, doesn't it. :-)
What it should do on an empty submit is generate a new image. But it
presents the same image repeatedly.


Then I should think that it's a caching issue.

Because you aren't sending any freshness information, I suspect that IE
is making its own guess, but it's too far into the future. The following
headers should prompt any browser into revalidating a resource at the
origin server,

Expires: Thu, 01 Jan 1970 00:00:00 GMT
Cache-Control: max-age=0, must-revalidate

though an alternative approach is to fiddle the URL; append a timestamp,
or some other constantly changing number, to the query string.

For an image like this, you could also instruct the browser to not
bother caching the data at all.

[snip]

Hope that helps,
Mike

--
Michael Winter
Prefix subject with [News] before replying by e-mail.
Mar 31 '06 #2
Michael Winter wrote:
On 31/03/2006 13:41, Amer Neely wrote:

[snip]
Visit http://www.softouch.on.ca/cgi-bin/confirmation_ie.pl

[snip]
For some reason the submit button on this form is not working
properly. It DOES submit the form as evidenced by the date/time
change.

Then the submit button works properly then, doesn't it. :-)
What it should do on an empty submit is generate a new image. But it
presents the same image repeatedly.

Then I should think that it's a caching issue.

Because you aren't sending any freshness information, I suspect that IE
is making its own guess, but it's too far into the future. The following
headers should prompt any browser into revalidating a resource at the
origin server,

Expires: Thu, 01 Jan 1970 00:00:00 GMT
Cache-Control: max-age=0, must-revalidate

though an alternative approach is to fiddle the URL; append a timestamp,
or some other constantly changing number, to the query string.

For an image like this, you could also instruct the browser to not
bother caching the data at all.

[snip]

Hope that helps,
Mike


Thanks for the reply. I tried your suggestion of tacking something onto
the form URL (date/timestamp) and also cleared cache and deleted files.
That worked once! But then it was back to its old trick. I'll try your
other one about sending those headers.

--
Amer Neely
Home of Spam Catcher
W: www.softouch.on.ca
E: tr****@softouch.on.ca
Perl | MySQL | CGI programming for all data entry forms.
"We make web sites work!"
Mar 31 '06 #3
Michael Winter wrote:
On 31/03/2006 13:41, Amer Neely wrote:

[snip]
Visit http://www.softouch.on.ca/cgi-bin/confirmation_ie.pl

[snip]
For some reason the submit button on this form is not working
properly. It DOES submit the form as evidenced by the date/time
change.

Then the submit button works properly then, doesn't it. :-)
What it should do on an empty submit is generate a new image. But it
presents the same image repeatedly.

Then I should think that it's a caching issue.

Because you aren't sending any freshness information, I suspect that IE
is making its own guess, but it's too far into the future. The following
headers should prompt any browser into revalidating a resource at the
origin server,

Expires: Thu, 01 Jan 1970 00:00:00 GMT
Cache-Control: max-age=0, must-revalidate

though an alternative approach is to fiddle the URL; append a timestamp,
or some other constantly changing number, to the query string.

For an image like this, you could also instruct the browser to not
bother caching the data at all.

[snip]

Hope that helps,
Mike


Well, I'm going to give up on this animal for a while. Tried your other
suggestion with the headers, but then it just kept refreshing. Hopefully
someone will figure it out. It's really bugging me though.
--
Amer Neely
Home of Spam Catcher
W: www.softouch.on.ca
E: tr****@softouch.on.ca
Perl | MySQL | CGI programming for all data entry forms.
"We make web sites work!"
Mar 31 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: monika | last post by:
hi ... I have an asp page which has 3 buttons. <p align="center"><input class="button" type="button" onClick="location='welStudent.asp';" value="Click to write a new story"></p> <p...
2
by: Matt | last post by:
Can form.submit() submit another form? In the following example, in page1.asp, it is fine to submit the current form: form1.submit(), and and I could see the value "Joe" in page2.asp. However, if I...
2
by: Terence Parker | last post by:
How does one go about submitting a form with a link - but submitting it to a new window AND to a page different to that described within the action="" option of the <form> tag? Say, for example,...
4
by: Sarah | last post by:
Hi all. I have a form, and several text and image links on it that should submit the form with different actions. I prepared a simple page with just the code that's not working. PROBLEM:...
15
by: M Smith | last post by:
I have a form I want to submit to itself. I want to be able to type in a list of numbers and submit the form and have that list show up on the same form under the text box I typed them into and...
6
by: CJM | last post by:
Can somebody clarify if/how/when a simple form is submitted when the <Enter> key is pressed? As I understood it, if you have a form with a single submit button, if enter is pressed, the form...
4
by: Stuart Perryman | last post by:
Hi, I have the following code which works just fine in IE6 but not in Firefox. It is an extract of several table rows each with an individual form. It is generated by php. <form...
5
by: rjames.clarke | last post by:
I have the following. $result=mysql_query($sql); $nrows=mysql_num_rows($result); for ($i=0;$i<$nrows;$i++) { $row_array=mysql_fetch_row($result); echo "<form name='testform'...
5
by: Navillus | last post by:
Hey gang, I have a login form that is empty by default, but can be filled with values from a previous form: <input type=text maxlength="40" size="40" name="user" value="`usr`"> <input...
1
by: gbezas | last post by:
Hi All, I have added an event handler to redirect form.submit() to a newSubmit() method that I have defined (which does some additional processing before submitting the form). Additionally I...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.