O'Reilly logo

Active Server Pages 3.0 from Scratch by Nicholas Chase

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Completing the Form

The form is almost complete; however, notice that all of the information you submitted, including your password, is in plain sight in the URL. That's fine for this example because you needed to see what the form was doing, but it's not a good idea in a real application. What you need to do is change the method that the form uses to send its information to the server.

Two methods are available: get and post. When a form is submitted using get, the information is put into the querystring. When a form is submitted using post the information is added to the request itself and processed in a different way.

If you don't specify one or the other, the browser uses get, and that's what you've been seeing. You want to use post. Add ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required