DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3

Thread: strange!!

  1. #1
    Frank Y. Guest

    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

  2. #2
    Russell Jones Guest

    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>&nbsp;</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




  3. #3
    Frank Y. Guest

    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

    >
    >



Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


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


Sponsored Links