|
 |
asp_databases thread: Blank Values in Form Processing?
Message #1 by "Ray Murphy" <raymondmurphy@c...> on Fri, 25 Aug 2000 11:8:44
|
|
Help required again, I'm afraid .....
Given the code snippet below, can anybody put me out of my misery and
explain how I'm ending up with no value being passed into WhichId on
the ProcessId page ?
<FORM ACTION="ProcessId.asp?
WhichId=<%= Request.Form("choose") %>" METHOD="POST">
<select name="choose">
<option value="fourpart">fourpart</option>
<option value="numeric">numeric</option>
</select>
<p>
<INPUT TYPE = "SUBMIT" VALUE="SUBMIT">
</FORM>
Regardless of whether I click on 'fourpart' or 'numeric' I can't get the
value passed down to the ProcessId page.
Awaiting enlightenment .....
Ray
Message #2 by Gregory_Griffiths@c... on Fri, 25 Aug 2000 13:25:33 +0100
|
|
A select component of a form needs to be handled differently to most
other form elements, I can spit this out in Javascript, but not so sure
about ASP. Once you've got the value out then it should all work.
> -----Original Message-----
> From: raymondmurphy@c... [mailto:raymondmurphy@c...]
> Sent: 25 August 2000 11:09
> To: asp_databases@p...
> Subject: FW: [asp_databases] Blank Values in Form Processing?
>
>
> Help required again, I'm afraid .....
>
> Given the code snippet below, can anybody put me out of my misery and
> explain how I'm ending up with no value being passed into WhichId on
> the ProcessId page ?
>
> <FORM ACTION="ProcessId.asp?
> WhichId=<%= Request.Form("choose") %>" METHOD="POST">
> <select name="choose">
> <option value="fourpart">fourpart</option>
> <option value="numeric">numeric</option>
> </select>
> <p>
>
> <INPUT TYPE = "SUBMIT" VALUE="SUBMIT">
>
> </FORM>
>
> Regardless of whether I click on 'fourpart' or 'numeric' I
> can't get the
> value passed down to the ProcessId page.
>
> Awaiting enlightenment .....
>
> Ray
>
> ---
> You are currently subscribed to asp_databases
> $subst('Email.Unsub')
>
>
Message #3 by "Dana Coffey" <dcoffey@x...> on Fri, 25 Aug 2000 09:08:02 -0400
|
|
try taking " WhichId=<%= Request.Form("choose") %> out of the form tag and
put in the page "prcessId.asp":
then do response.write WhichId to see if it passed.
Dana Coffey
Technologist, Xceed, Inc.
112 Krog St. Atlanta, GA 30307
tel. xxx-xxx-xxxx x 5013
www.xceed.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Everything should be as simple as it is, but not simpler.
----Albert Einstein
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
{{-----Original Message-----
{{From: Ray Murphy [mailto:raymondmurphy@c...]
{{Sent: Friday, August 25, 2000 11:01 AM
{{To: ASP Databases
{{Subject: [asp_databases] Blank Values in Form Processing?
{{
{{
{{Help required again, I'm afraid .....
{{
{{Given the code snippet below, can anybody put me out of my misery and
{{explain how I'm ending up with no value being passed into WhichId on
{{the ProcessId page ?
{{
{{ <FORM ACTION="ProcessId.asp?
{{ WhichId=<%= Request.Form("choose") %>" METHOD="POST">
{{ <select name="choose">
{{ <option value="fourpart">fourpart</option>
{{ <option value="numeric">numeric</option>
{{ </select>
{{ <p>
{{
{{ <INPUT TYPE = "SUBMIT" VALUE="SUBMIT">
{{
{{ </FORM>
{{
{{Regardless of whether I click on 'fourpart' or 'numeric' I can't get the
{{value passed down to the ProcessId page.
{{
{{Awaiting enlightenment .....
{{
{{Ray
{{
{{---
{{You are currently subscribed to asp_databases
{{
{{$subst('Email.Unsub')
{{
{{
{{
Message #4 by "Ariel Comstock" <Ariel.Comstock@b...> on Fri, 25 Aug 2000 08:24:03 -0500
|
|
ray-
I noticed that all of your values in your name/value pairs don't have
closing quotation marks around them in the <FORM> tag. Just a minor
issue, but it might help?
<FORM ACTION=3D"ProcessId.asp?" WhichId=3D"<%=3D Request.Form("choose")
%>"
METHOD=3D"POST">
----------------------------^ --------^
ariel 8:)
<FORM ACTION=3D"ProcessId.asp?
{{ WhichId=3D<%=3D Request.Form("choose") %>" METHOD=3D"POST">
{{ <select name=3D"choose">
{{ <option value=3D"fourpart">fourpart</option>
{{ <option value=3D"numeric">numeric</option>
{{ </select>
{{ <p>
{{
{{ <INPUT TYPE =3D "SUBMIT" VALUE=3D"SUBMIT">
{{
{{ </FORM>
-----Original Message-----
From: Ray Murphy [mailto:raymondmurphy@c...]
Sent: Thursday, August 24, 2000 8:01 PM
To: ASP Databases
Subject: [asp_databases] Blank Values in Form Processing?
Help required again, I'm afraid .....
Given the code snippet below, can anybody put me out of my misery and
explain how I'm ending up with no value being passed into WhichId on
the ProcessId page ?
<FORM ACTION=3D"ProcessId.asp?
WhichId=3D<%=3D Request.Form("choose") %>" METHOD=3D"POST">
<select name=3D"choose">
<option value=3D"fourpart">fourpart</option>
<option value=3D"numeric">numeric</option>
</select>
<p>
<INPUT TYPE =3D "SUBMIT" VALUE=3D"SUBMIT">
</FORM>
Regardless of whether I click on 'fourpart' or 'numeric' I can't get the
value passed down to the ProcessId page.
Awaiting enlightenment .....
Ray
---
You are currently subscribed to asp_databases
$subst('Email.Unsub')
Message #5 by "Neethling, Dirk BYNI/PLM" <Dirk.Neethling2@h...> on Fri, 25 Aug 2000 20:20:50 +0200
|
|
like Dana said, using the following snippet in ProcessId.asp and leaving
your code in starter .asp works fine
<%
Response.Write "WhichId: " & Request.QueryString("choose")
%>
try taking " WhichId=<%= Request.Form("choose") %> out of the form tag and
put in the page "prcessId.asp":
then do response.write WhichId to see if it passed.
Dana Coffey
Technologist, Xceed, Inc.
112 Krog St. Atlanta, GA 30307
tel. xxx-xxx-xxxx x 5013
www.xceed.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Everything should be as simple as it is, but not simpler.
----Albert Einstein
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
{{-----Original Message-----
{{From: Ray Murphy [mailto:raymondmurphy@c...]
{{Sent: Friday, August 25, 2000 11:01 AM
{{To: ASP Databases
{{Subject: [asp_databases] Blank Values in Form Processing?
{{
{{
{{Help required again, I'm afraid .....
{{
{{Given the code snippet below, can anybody put me out of my misery and
{{explain how I'm ending up with no value being passed into WhichId on
{{the ProcessId page ?
{{
{{ <FORM ACTION="ProcessId.asp?
{{ WhichId=<%= Request.Form("choose") %>" METHOD="POST">
{{ <select name="choose">
{{ <option value="fourpart">fourpart</option>
{{ <option value="numeric">numeric</option>
{{ </select>
{{ <p>
{{
{{ <INPUT TYPE = "SUBMIT" VALUE="SUBMIT">
{{
{{ </FORM>
{{
{{Regardless of whether I click on 'fourpart' or 'numeric' I can't get the
{{value passed down to the ProcessId page.
{{
{{Awaiting enlightenment .....
{{
{{Ray
{{
{{---
{{You are currently subscribed to asp_databases
{{
{{$subst('Email.Unsub')
{{
{{
{{
---
You are currently subscribed to asp_databases
Message #6 by Subramaniam Iyer <pureasp@y...> on Fri, 25 Aug 2000 22:23:38 -0700 (PDT)
|
|
Hi there Ray,
Since u r using the "POST" method to submit the form,
I think a better way of getting it would be to
directly access the form collection of the request
object at the server itself on the page
ProcessId.asp..
by using request.form("choose")
Cheers
Subramaniam Iyer
--- Ray Murphy <raymondmurphy@c...> wrote:
> Help required again, I'm afraid .....
>
> Given the code snippet below, can anybody put me out
> of my misery and
> explain how I'm ending up with no value being passed
> into WhichId on
> the ProcessId page ?
>
> <FORM ACTION="ProcessId.asp?
> WhichId=<%= Request.Form("choose") %>"
> METHOD="POST">
> <select name="choose">
> <option value="fourpart">fourpart</option>
> <option value="numeric">numeric</option>
> </select>
> <p>
>
> <INPUT TYPE = "SUBMIT" VALUE="SUBMIT">
>
> </FORM>
>
> Regardless of whether I click on 'fourpart' or
> 'numeric' I can't get the
> value passed down to the ProcessId page.
>
> Awaiting enlightenment .....
>
> Ray
>
> ---
> You are currently subscribed to asp_databases
> $subst('Email.Unsub')
>
__________________________________________________
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/
Message #7 by "James Q. Stansfield" <jstansfield@t...> on Fri, 25 Aug 2000 10:09:52 -0400
|
|
I think I know what your problem is... You are displaying a form, asking
for some input and expecting ASP to use that input immediately before the
form is processed. ASP doesn't work this way... What you should do is name
your SELECT box "WhichID"... Then you need to change the form to 'GET" or
change the way ProcessID.asp retrieves the value: WhichID. That should help
you out...
-----Original Message-----
From: Ariel Comstock [mailto:Ariel.Comstock@b...]
Sent: Friday, August 25, 2000 9:24 AM
To: ASP Databases
Subject: [asp_databases] RE: Blank Values in Form Processing?
ray-
I noticed that all of your values in your name/value pairs don't have
closing quotation marks around them in the <FORM> tag. Just a minor
issue, but it might help?
<FORM ACTION="ProcessId.asp?" WhichId="<%= Request.Form("choose") %>"
METHOD="POST">
----------------------------^ --------^
ariel 8:)
<FORM ACTION="ProcessId.asp?
{{ WhichId=<%= Request.Form("choose") %>" METHOD="POST">
{{ <select name="choose">
{{ <option value="fourpart">fourpart</option>
{{ <option value="numeric">numeric</option>
{{ </select>
{{ <p>
{{
{{ <INPUT TYPE = "SUBMIT" VALUE="SUBMIT">
{{
{{ </FORM>
-----Original Message-----
From: Ray Murphy [mailto:raymondmurphy@c...]
Sent: Thursday, August 24, 2000 8:01 PM
To: ASP Databases
Subject: [asp_databases] Blank Values in Form Processing?
Help required again, I'm afraid .....
Given the code snippet below, can anybody put me out of my misery and
explain how I'm ending up with no value being passed into WhichId on
the ProcessId page ?
<FORM ACTION="ProcessId.asp?
WhichId=<%= Request.Form("choose") %>" METHOD="POST">
<select name="choose">
<option value="fourpart">fourpart</option>
<option value="numeric">numeric</option>
</select>
<p>
<INPUT TYPE = "SUBMIT" VALUE="SUBMIT">
</FORM>
Regardless of whether I click on 'fourpart' or 'numeric' I can't get the
value passed down to the ProcessId page.
Awaiting enlightenment .....
Ray
---
You are currently subscribed to asp_databases
$subst('Email.Unsub')
---
You are currently subscribed to asp_databases
Message #8 by "Ray Murphy" <raymondmurphy@c...> on Tue, 29 Aug 2000 10:14:41
|
|
Following Dana's advice, I can now get this code to work.
Taking the "WhichId=<%=Request.Form("choose")%>" out of the first page,
and
replacing it with "WhichId = Request.QueryString("choose")" in the second
page ("ProcessId.asp") now enables me to see the value correctly in the
second page.
Must admit, I still don't fully understand why the original approach didn't
work, but at least I can now do what I originally intended.
Many thanks for all advice offered on this issue.
Ray
|
|
 |