-
strange!!
i use the post method to pass the form. but the strange thing
is that i can see all the form item values in the address bar...
could anybody tell me the possible reason of this?
thx very much....
frank
-
Re: strange!!
One way this condition can occur is when you have *two* nested forms, and
the outer form's method has not been defined, so it defaults to "GET". The
solution is to remove the outer, unneeded form tag. Check your HTML. If
that's not the problem, post your code and someone here will help you.
Here's an example.
<%@ Language=VBScript %>
<%
if Request.QueryString("junk") <> "" then
Response.Write "Querystring(junk) " & Request.QueryString("junk") & "<br>"
elseif Request.Form("junk") <> "" then
Response.Write "Form(junk) " & Request.Form("junk") & "<br>"
else
Response.Write "Enter some text in the field and click Submit<br>"
end if
%>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
</HEAD>
<BODY>
<form>
<form method="post">
<input type="text" name="junk">
<input type="submit" value="Submit">
</form>
</form>
<P> </P>
</BODY>
</HTML>
"Frank Y." <yangyuchen39@hotmail.com> wrote in message
news:3b95ea89$1@news.devx.com...
>
> i use the post method to pass the form. but the strange thing
> is that i can see all the form item values in the address bar...
> could anybody tell me the possible reason of this?
>
> thx very much....
>
> frank
-
Re: strange!!
Thanks friend.
I just found out the reason for this. It was because i missed one
closing quote mark for the action attribute.
Thanks for your kind help.
frank
"Russell Jones" <arj1@northstate.net> wrote:
>One way this condition can occur is when you have *two* nested forms, and
>the outer form's method has not been defined, so it defaults to "GET". The
>solution is to remove the outer, unneeded form tag. Check your HTML. If
>that's not the problem, post your code and someone here will help you.
>Here's an example.
>
><%@ Language=VBScript %>
><%
> if Request.QueryString("junk") <> "" then
> Response.Write "Querystring(junk) " & Request.QueryString("junk") & "<br>"
> elseif Request.Form("junk") <> "" then
> Response.Write "Form(junk) " & Request.Form("junk") & "<br>"
> else
> Response.Write "Enter some text in the field and click Submit<br>"
> end if
>%>
><HTML>
><HEAD>
><META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
></HEAD>
><BODY>
><form>
><form method="post">
><input type="text" name="junk">
><input type="submit" value="Submit">
></form>
></form>
><P>*</P>
>
></BODY>
></HTML>
>
>
>"Frank Y." <yangyuchen39@hotmail.com> wrote in message
>news:3b95ea89$1@news.devx.com...
>>
>> i use the post method to pass the form. but the strange thing
>> is that i can see all the form item values in the address bar...
>> could anybody tell me the possible reason of this?
>>
>> thx very much....
>>
>> frank
>
>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks