Form Post.

Discussion in 'ASP General' started by Thomas, Apr 10, 2009.

  1. Thomas

    Thomas Guest

    Why does this just display empty values:

    <%
    strGroup1=request.form("frmPicks.grp1.value")
    strGroup2=request.form("frmPicks.grp2.value")
    strGroup3=request.form("frmPicks.grp3.value")
    strGroup4=request.form("frmPicks.grp4.value")
    strGroup5=request.form("frmPicks.grp5.value")
    strGroup6=request.form("frmPicks.grp6.value")

    'The following four lines of code are just here for test
    'purposes to see what variable values have been pulled in from the
    'HTM form.

    response.Write("Group1 = " & strGroup1) & "<BR>"
    response.Write("Group2 = " & strGroup2) & "<BR>"
    response.Write("Group3 = " & strGroup3) & "<BR>"
    response.Write("Group4 = " & strGroup4) & "<BR>"
    response.Write("Group5 = " & strGroup5) & "<BR>"
    response.Write("Group6 = " & strGroup6) & "<BR>"
    %>

    Thanks.
    Thomas, Apr 10, 2009
    #1
    1. Advertising

  2. Thomas

    Bob Barrows Guest

    Thomas wrote:
    > Why does this just display empty values:
    >
    > <%
    > strGroup1=request.form("frmPicks.grp1.value")
    > strGroup2=request.form("frmPicks.grp2.value")
    > strGroup3=request.form("frmPicks.grp3.value")
    > strGroup4=request.form("frmPicks.grp4.value")
    > strGroup5=request.form("frmPicks.grp5.value")
    > strGroup6=request.form("frmPicks.grp6.value")
    >
    > 'The following four lines of code are just here for test
    > 'purposes to see what variable values have been pulled in
    > from the 'HTM form.
    >
    > response.Write("Group1 = " & strGroup1) & "<BR>"
    > response.Write("Group2 = " & strGroup2) & "<BR>"
    > response.Write("Group3 = " & strGroup3) & "<BR>"
    > response.Write("Group4 = " & strGroup4) & "<BR>"
    > response.Write("Group5 = " & strGroup5) & "<BR>"
    > response.Write("Group6 = " & strGroup6) & "<BR>"
    > %>
    >

    Maybe because your form has no elements with names like
    "frmPicks.grp1.value"

    To see the actual keys of the data in this request.form collection, do this:

    <%
    for each key in request.form
    response.write key & " contains: """ & request.form(key) & """<BR>"
    next
    %>

    --
    Microsoft MVP - ASP/ASP.NET - 2004-2007
    Please reply to the newsgroup. This email account is my spam trap so I
    don't check it very often. If you must reply off-line, then remove the
    "NO SPAM"
    Bob Barrows, Apr 10, 2009
    #2
    1. Advertising

  3. Thomas

    Thomas Guest

    Hi Bob,

    When I run you line of code (everything else commented out), I get nothing
    displayed in the browser either.

    Here is part of the form MTHL:

    <form name="frmPicks" method="post" action="ProcessSeriesPicks.asp"
    enctype="text/plain" id="Form1">

    In ProcessSeriesPicks.asp, I have nothing but your code.

    I've tried this in IE6 and FF3.08

    "Bob Barrows" <> wrote in message
    news:...
    > Thomas wrote:
    >> Why does this just display empty values:
    >>
    >> <%
    >> strGroup1=request.form("frmPicks.grp1.value")
    >> strGroup2=request.form("frmPicks.grp2.value")
    >> strGroup3=request.form("frmPicks.grp3.value")
    >> strGroup4=request.form("frmPicks.grp4.value")
    >> strGroup5=request.form("frmPicks.grp5.value")
    >> strGroup6=request.form("frmPicks.grp6.value")
    >>
    >> 'The following four lines of code are just here for test
    >> 'purposes to see what variable values have been pulled in
    >> from the 'HTM form.
    >>
    >> response.Write("Group1 = " & strGroup1) & "<BR>"
    >> response.Write("Group2 = " & strGroup2) & "<BR>"
    >> response.Write("Group3 = " & strGroup3) & "<BR>"
    >> response.Write("Group4 = " & strGroup4) & "<BR>"
    >> response.Write("Group5 = " & strGroup5) & "<BR>"
    >> response.Write("Group6 = " & strGroup6) & "<BR>"
    >> %>
    >>

    > Maybe because your form has no elements with names like
    > "frmPicks.grp1.value"
    >
    > To see the actual keys of the data in this request.form collection, do
    > this:
    >
    > <%
    > for each key in request.form
    > response.write key & " contains: """ & request.form(key) & """<BR>"
    > next
    > %>
    >
    > --
    > Microsoft MVP - ASP/ASP.NET - 2004-2007
    > Please reply to the newsgroup. This email account is my spam trap so I
    > don't check it very often. If you must reply off-line, then remove the
    > "NO SPAM"
    >
    >
    Thomas, Apr 10, 2009
    #3
  4. Gazing into my crystal ball I observed "Thomas"
    <> writing in
    news::

    > Why does this just display empty values:
    >
    > <%
    > strGroup1=request.form("frmPicks.grp1.value")
    > strGroup2=request.form("frmPicks.grp2.value")
    > strGroup3=request.form("frmPicks.grp3.value")
    > strGroup4=request.form("frmPicks.grp4.value")
    > strGroup5=request.form("frmPicks.grp5.value")
    > strGroup6=request.form("frmPicks.grp6.value")
    >
    > 'The following four lines of code are just here for test
    > 'purposes to see what variable values have been pulled in
    > from the 'HTM form.
    >
    > response.Write("Group1 = " & strGroup1) & "<BR>"
    > response.Write("Group2 = " & strGroup2) & "<BR>"
    > response.Write("Group3 = " & strGroup3) & "<BR>"
    > response.Write("Group4 = " & strGroup4) & "<BR>"
    > response.Write("Group5 = " & strGroup5) & "<BR>"
    > response.Write("Group6 = " & strGroup6) & "<BR>"
    > %>
    >
    > Thanks.


    Please, please stop posting in HTML. Look at Outlook Express's help to
    find out how to do this.

    Then look at the response to your other post [Form Processing (wrong
    forum)]


    --
    Adrienne Boswell at Home
    Arbpen Web Site Design Services
    http://www.cavalcade-of-coding.info
    Please respond to the group so others can share
    Adrienne Boswell, Apr 10, 2009
    #4
  5. Thomas

    Thomas Guest

    Sorry bout that, I was using a friends computer. Set to plain text....

    Problem seems to have been with FF. I cleared cache and now it seems to work
    fine. Tired with IE6 (cleared cache as well).

    Thanks to all.
    "Adrienne Boswell" <> wrote in message
    news:Xns9BE99CA75794Earbpenyahoocom@207.115.17.102...
    > Gazing into my crystal ball I observed "Thomas"
    > <> writing in
    > news::
    >
    >> Why does this just display empty values:
    >>
    >> <%
    >> strGroup1=request.form("frmPicks.grp1.value")
    >> strGroup2=request.form("frmPicks.grp2.value")
    >> strGroup3=request.form("frmPicks.grp3.value")
    >> strGroup4=request.form("frmPicks.grp4.value")
    >> strGroup5=request.form("frmPicks.grp5.value")
    >> strGroup6=request.form("frmPicks.grp6.value")
    >>
    >> 'The following four lines of code are just here for test
    >> 'purposes to see what variable values have been pulled in
    >> from the 'HTM form.
    >>
    >> response.Write("Group1 = " & strGroup1) & "<BR>"
    >> response.Write("Group2 = " & strGroup2) & "<BR>"
    >> response.Write("Group3 = " & strGroup3) & "<BR>"
    >> response.Write("Group4 = " & strGroup4) & "<BR>"
    >> response.Write("Group5 = " & strGroup5) & "<BR>"
    >> response.Write("Group6 = " & strGroup6) & "<BR>"
    >> %>
    >>
    >> Thanks.

    >
    > Please, please stop posting in HTML. Look at Outlook Express's help to
    > find out how to do this.
    >
    > Then look at the response to your other post [Form Processing (wrong
    > forum)]
    >
    >
    > --
    > Adrienne Boswell at Home
    > Arbpen Web Site Design Services
    > http://www.cavalcade-of-coding.info
    > Please respond to the group so others can share
    >
    >
    Thomas, Apr 10, 2009
    #5
  6. Thomas

    Bob Barrows Guest

    Thomas wrote:
    > Why does this just display empty values:
    >
    > <%
    > strGroup1=request.form("frmPicks.grp1.value")
    > strGroup2=request.form("frmPicks.grp2.value")
    > strGroup3=request.form("frmPicks.grp3.value")
    > strGroup4=request.form("frmPicks.grp4.value")
    > strGroup5=request.form("frmPicks.grp5.value")
    > strGroup6=request.form("frmPicks.grp6.value")
    >
    > 'The following four lines of code are just here for test
    > 'purposes to see what variable values have been pulled in
    > from the 'HTM form.
    >
    > response.Write("Group1 = " & strGroup1) & "<BR>"
    > response.Write("Group2 = " & strGroup2) & "<BR>"
    > response.Write("Group3 = " & strGroup3) & "<BR>"
    > response.Write("Group4 = " & strGroup4) & "<BR>"
    > response.Write("Group5 = " & strGroup5) & "<BR>"
    > response.Write("Group6 = " & strGroup6) & "<BR>"
    > %>
    >
    > Thanks.


    This looks familiar ... didn't I already answer this somewhere?

    --
    Microsoft MVP - ASP/ASP.NET - 2004-2007
    Please reply to the newsgroup. This email account is my spam trap so I
    don't check it very often. If you must reply off-line, then remove the
    "NO SPAM"
    Bob Barrows, Apr 12, 2009
    #6
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. TNG
    Replies:
    2
    Views:
    2,342
  2. botdf

    Get POST information from <form>......</form>

    botdf, Jan 26, 2005, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    175
    Joerg Jooss
    Jan 29, 2005
  3. Don Glover the younger

    ASP, FORMS, POST METHOD And Post with out form(???)

    Don Glover the younger, Jul 13, 2003, in forum: ASP General
    Replies:
    0
    Views:
    453
    Don Glover the younger
    Jul 13, 2003
  4. J. Muenchbourg
    Replies:
    0
    Views:
    357
    J. Muenchbourg
    Aug 6, 2003
  5. Adam
    Replies:
    8
    Views:
    418
Loading...

Share This Page