Sorry for the non-perl related question. The problem no longer appears after making 2 changes to the calling HTML file. I do not pretend to understand this.

1. I removed the following meta tag in the head section:

<meta http-equiv="Expires" content="0">

2. I changed the form tag from

<form action="http://school.edu/cgi-bin/myscript.pl" method="POST">

to

<form action="http://www.school.edu/cgi-bin/myscript.pl" method="POST">

Because I do not have control over the Web server, I do not have a lot of chances to test different possibilities.

It's possible that the configuration of the Web server the URL without the "www" caused the problem or maybe the expiration tag was causing a problem with the browser.

This is very strange. There are 2 web pages and 1 of them always worked and the other worked but not always. Both had the expires meta tag and the one that was failing did not have "www" in the url.

Maybe someday they'll let me do a test to find out which one was the culprit. In the meantime, I'm staying away from the expires meta tag. It's not a good thing for the web page anyway.

Richard


In reply to Re: CONTENT_TYPE environment variable sometimes empty when posting a form? by rzward
in thread CONTENT_TYPE environment variable sometimes empty when posting a form? by rzward

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.