in reply to Re: My POST is changing to GET
in thread My POST is changing to GET

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.

Replies are listed 'Best First'.
Re: Re: Re: My POST is changing to GET
by Sinister (Friar) on May 02, 2001 at 20:26 UTC
    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.

        One thing you may find helpful is to use Tidy to clean up your HTML. It will find those problems for you. Very useful!

        Cheers,
        Ovid

        Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.

Re: Re: Re: My POST is changing to GET
by merlyn (Sage) on May 02, 2001 at 20:23 UTC