Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

submit form/querystring

Status
Not open for further replies.

dexeloper

Programmer
Oct 26, 2004
162
GB
I have a html file test1.html:

<html><head></head>
<body>
<form name="main" action="test2.asp">
id:<input type=text name='id' size=3 value='5'>
<input type=submit>
</form>
</body>

And an ASP file test2.asp:

<% @LANGUAGE="VBScript" %>
<%
response.write("<html><head></head><body>x</body></html>")
response.end
%>

When I open test2.html and submit I get 'test2.asp?id=5'
What I don't understand is why the form value gets in the url as a querystring value. ???
 
Code:
<form name="main" [!]method="post"[/!] action="test2.asp">

By default, the method="get", which passes form values in the url.

-George

"the screen with the little boxes in the window." - Moron
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top