in reply to My POST is changing to GET

I suspect that this has nothing to do with perl. Seems more like a browser problem. Try a real hard refresh, and check your source-codes, better yet, post the URL of the specified CGI...

Sinister greetings.

Replies are listed 'Best First'.
Re: Re: My POST is changing to GET
by rguyer (Novice) on May 02, 2001 at 20:20 UTC
    The site is at: http://www.testsite.crawfordinfo.com

    If you sign in as 'test' with password 'test' you can see the browser is displaying all the form data in the address box after submit. I didn't have this problem at one time, but then I made some changes to the script (I thought unrelated changes) and now the form info shows up.

    Another side affect is file uploads. I've got another form in the site that allows the user to upload files. They won't work unless the filename is sent using the POST method.
      I think this bit of code:
      <body leftMargin=0 topMargin=0> <table bgColor=#FFFFFF border=0 cellPadding=0 cellSpacing=0 height=2 w +idth="100%"> <tr> <td align=center width="95" height="88"> <img border="0" src="http://www.testsite.crawfordinfo. +com/templates/images/cconlinelite.gif" width=95 height=88> </td> <td align=center height="88"> <a href="http://www.linuxforum.com" target="_blank" alt="Visit The Lin +ux Forum"><img border=0 src="http://www.testsite.crawfordinfo.com/ban +ner/linux.gif"></a><br> <a href="http://www.linuxforum.com" target="_blank">Visit The Linux +Forum</a> </td> <form> <td align=center width="95" height="88">&nbsp;&nbsp;&n +bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </td>
      is your problem. C the empty <form> tag. It is never closed, default method = get.

      Have fun!

      EDIT
      if you look at the address string closely, you might notice index.pl is not in there...
      /EDIT

      Sinister greetings.
        Damn, that little tag has caused me tons of headaches. Thanks for the help. I was looking high and low in the perl code, and never thought to check out the HTML.

        Thanks again,
        rguyer

        ps. This is the fastest I've ever posted a question a board and had a solution. Under 45 minutes.