Re: URL showing username and password....? Please help

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Mark Fitzpatrick (markfitz_at_fitzme.com)
Date: 03/25/04


Date: Thu, 25 Mar 2004 16:12:08 -0600

It's your forms. There are two ways to send data using a form, the GET
method and the POST method. Your forms must be using the GET method. The GET
method takes all the form responses and appends them to the URL as a
querystring. The POST method sends them to the server directly. However, you
may have problems if your form handlers require the data to be using the GET
method because getting the data for these are done differently. For example:
To get a form field called EmailAddress that was sent using the GET method
is done by calling Request.QueryString("EmailAddress"). To get a value sent
by POST you call Request.Form("EmailAddress"). If you try using a
Request.Form to access a variable when the data is sent by GET you'll get an
empty string returned as it can't find the variable.

        Hope this helps,
        Mark Fitzpatrick
        Microsoft MVP - FrontPage

"Rudi Ahlers" <Rudi@Bonzai.org.za> wrote in message
news:X7OdncbtYs_W0P7dRVn-tA@is.co.za...
> I got an ASP site, which displays anything from forms, even the username
and
> password in the address bar. How do I tell it not todo that?
>
> --
>
> Kind Regards
> Rudi Ahlers
> +27 (82) 926 1689
>
> For as he thinks in his heart, so he is. ... (Proverbs 23:7)
>
>



Relevant Pages

  • Re: POST and HTML Forms
    ... > I am currently designing an HTML page with a form with a post method. ... > The page is calling itself so with the details that are passed will ... > var query = window.location.search.substring; ... I'm fairly new to javascript and am assuming this line is at ...
    (comp.lang.javascript)
  • POST and HTML Forms
    ... I am currently designing an HTML page with a form with a post method. ... The page is calling itself so with the details that are passed will ... var query = window.location.search.substring; ... and then just calling the array to get the value, ...
    (comp.lang.javascript)
  • Re: Ensuring form field submission order
    ... > When submitting a form to a servlet using a POST method - im currently ... defined by the hash values of the keys. ... Note that the last method mentioned is great if you have a form field that ... form fields (see the HTML specs for a definition os a "successful" field). ...
    (comp.lang.java.help)
  • Re: Query String
    ... What you want is the GET method, instead of the POST method ... > How do you put the value of a form field into the query string. ... > login(); ...
    (comp.lang.php)
  • Re: query string passing woes........ help... please....
    ... In your contact.php you need to "fetch" the values sent, as since of PHP 4.1 the global values are by default turned off. ... Now the value sent with the form is stored in the variable $emailaddress. ... this would store the value in $emailaddress, if you use the get-method, but that won't normally work on forms. ... If you want to be able to use both results via the get and post method, ...
    (alt.php)