Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Form Post.

Reply
Thread Tools

Form Post.

 
 
Thomas
Guest
Posts: n/a
 
      04-10-2009
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.
 
Reply With Quote
 
 
 
 
Bob Barrows
Guest
Posts: n/a
 
      04-10-2009
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"


 
Reply With Quote
 
 
 
 
Thomas
Guest
Posts: n/a
 
      04-10-2009
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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"
>
>



 
Reply With Quote
 
Adrienne Boswell
Guest
Posts: n/a
 
      04-10-2009
Gazing into my crystal ball I observed "Thomas"
<(E-Mail Removed)> writing in
news:(E-Mail Removed):

> 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

 
Reply With Quote
 
Thomas
Guest
Posts: n/a
 
      04-10-2009
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" <(E-Mail Removed)> wrote in message
news:Xns9BE99CA75794Earbpenyahoocom@207.115.17.102 ...
> Gazing into my crystal ball I observed "Thomas"
> <(E-Mail Removed)> writing in
> news:(E-Mail Removed):
>
>> 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
>
>



 
Reply With Quote
 
Bob Barrows
Guest
Posts: n/a
 
      04-12-2009
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"


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to retrieve form field value if form is EncType=multipart/form-dataForm? Li Zhang ASP .Net 4 02-27-2009 01:23 AM
<form>...</form> - how to supress blank space after </form> in IE? rob c Javascript 4 12-30-2005 06:10 PM
vs2005 - Open a child form based on selected record parent form's dgv - how? dbuchanan ASP .Net 2 12-19-2005 10:52 PM
Form in a form - possible ? Adam Benson ASP .Net 3 07-29-2003 09:19 AM
passing arguments from web-form to win-form Mart Rogers ASP .Net 3 07-09-2003 07:18 AM



Advertisments