This is really wierd, since this script was working just fine last week and I can't figure out what I might have done to break it. The CGI script currently generates the main menu fine, but when the user clicks on a button from this main menu, the URL gets modified and the 404 error appears. I do not understand why the URL is getting modified! Please help!

Starting URL in browser window:
"http://www.leucht.com/pabc/pvst-dev/"
(Don't try to go there, it's password protected.)

Tiny snippet of my perl code using CGI module:

print $myCgi->start_form(); print "<center>\n"; print "<input type=hidden name=\"action\" value=\"StorySubmittal\">"; print "<input type=submit value=\"Story Submittal\">"; print "</center>\n"; print $myCgi->end_form();

Tiny snippet of HTML Source generated from above perl code (note the %2F's in the action field. Is that correct? I've never looked at the generated HTML code before. It's always just worked!):

<form method="post" action="%2F.%2Findex.cgi" enctype="application/x-w +ww-form-urlencoded"> <center> <input type=hidden name="action" value="StorySubmittal"> <input type=submit value="Story Submittal"> </center> <div></div></form>

When the user hits the "Story Submittal" button, the URL in the browser window changes to this:
"http://www.leucht.com/pabc/pvst-dev/%2Fpabc%2Fpvst-dev%2F"
This is obviously not a good URL!

This has never happened to me before in 5 years worth of writing CGI perl scripts! Did I do something stupid and just haven't realized it yet?!? Please help me, I need to get this script working again this weekend! My customers will not be very happy! :-)

Thanks in advance for any help you can give,
Kurt Leucht


In reply to 404 Not Found following CGI post action by kleucht

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.