kleucht has asked for the wisdom of the Perl Monks concerning the following question:
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: 404 Not Found following CGI post action
by jsprat (Curate) on Aug 09, 2003 at 17:05 UTC | |
by kleucht (Beadle) on Aug 09, 2003 at 17:11 UTC | |
|
Re: 404 Not Found following CGI post action
by kleucht (Beadle) on Aug 09, 2003 at 16:06 UTC | |
|
Re: 404 Not Found following CGI post action
by bobn (Chaplain) on Aug 09, 2003 at 16:32 UTC | |
by kleucht (Beadle) on Aug 09, 2003 at 16:38 UTC | |
|
Re: 404 Not Found following CGI post action
by kleucht (Beadle) on Aug 09, 2003 at 16:51 UTC |