Click here to get back home

Form submit problem in IE

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Form submit problem in IE Amer Neely 03-31-2006
Get Chitika Premium
Posted by Amer Neely on March 31, 2006, 7:41 am
Please log in for more thread options


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: trudge@softouch.on.ca
Perl | MySQL | CGI programming for all data entry forms.
"We make web sites work!"

Posted by Michael Winter on March 31, 2006, 8:09 am
Please log in for more thread options


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.

Posted by Amer Neely on March 31, 2006, 12:29 pm
Please log in for more thread options


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: trudge@softouch.on.ca
Perl | MySQL | CGI programming for all data entry forms.
"We make web sites work!"

Posted by Amer Neely on March 31, 2006, 5:34 pm
Please log in for more thread options


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: trudge@softouch.on.ca
Perl | MySQL | CGI programming for all data entry forms.
"We make web sites work!"

Similar ThreadsPosted
Submit a form with hyperlink August 6, 2004, 11:56 pm
Submit a form without using a button? December 24, 2004, 4:26 pm
Submit a form using anchors? November 8, 2006, 3:53 pm
How to get rid of focus on submit button of a form. September 5, 2004, 1:21 pm
Restoring OTHER form field after submit September 23, 2005, 1:43 am
Saving HTML Form without Submit December 8, 2005, 4:23 pm
Trying to get the submit form to work - confused, please help! March 17, 2008, 3:12 pm
Using multiple button type="submit" elements within a form April 15, 2005, 4:24 pm
Newbie: How to use graphic instead of submit button on HTML form? August 29, 2006, 5:57 am
CSS submit button problem March 17, 2005, 1:08 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap