|
 |
asp_web_howto thread: Option Value Question
Message #1 by dirosky@h... on Wed, 15 May 2002 12:20:21
|
|
Hi,
I have the following option value code:
Response.Write "<OPTION VALUE="&oRS("BudgetHolder1")&">"&oRS("Details")
&"</OPTION>"
and use it to pass the value of budgetholder1 in a form. budgetholder1 is
a name eg tom brown but when the form is processed all that is added to
the database is tom.
Anyone know why?
Thanks,
Patrick
Message #2 by dirosky@h... on Wed, 15 May 2002 12:26:11
|
|
Spotted the problem - obvious really. I guess I need to take a break:-))
Needed string '' in the opption value!!
Response.Write "<OPTION VALUE='"&oRS("BudgetHolder1")&"'>"&oRS("Details")
&> "</OPTION>"
> Hi,
> I have the following option value code:
> Response.Write "<OPTION VALUE="&oRS("BudgetHolder1")&">"&oRS("Details")
&> "</OPTION>"
> and use it to pass the value of budgetholder1 in a form. budgetholder1
is
a> name eg tom brown but when the form is processed all that is added to
t> he database is tom.
> Anyone know why?
> Thanks,
> Patrick
Message #3 by "Peter Rooney" <peter.rooney@b...> on Wed, 15 May 2002 12:21:13 +0100
|
|
Patrick
In HTML, "whitespace" is considered to mean "end of element". Unless the
whitespace is enclosed in quote marks
try this:
Response.Write "<OPTION VALUE='" & oRS("BudgetHolder1") & "'>" &
oRS("Details") & "</OPTION>"
Peter
-----Original Message-----
From: dirosky@h... [mailto:dirosky@h...]
Sent: Wednesday, May 15, 2002 12:20 PM
To: ASP Web HowTo
Subject: [asp_web_howto] Option Value Question
Hi,
I have the following option value code:
Response.Write "<OPTION VALUE="&oRS("BudgetHolder1")&">"&oRS("Details")
&"</OPTION>"
and use it to pass the value of budgetholder1 in a form. budgetholder1 is
a name eg tom brown but when the form is processed all that is added to
the database is tom.
Anyone know why?
Thanks,
Patrick
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20
--
Virus scanned by edNET.
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.361 / Virus Database: 199 - Release Date: 5/7/2002
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.361 / Virus Database: 199 - Release Date: 5/7/2002
Message #4 by "TomMallard" <mallard@s...> on Wed, 15 May 2002 06:23:04 -0700
|
|
You aren't getting the double quotes through...note the three double quotes:
Response.Write "<OPTION VALUE=""" & oRS("BudgetHolder1") &
""">"&oRS("Details")
&"</OPTION>"
tom mallard
seattle
-----Original Message-----
From: dirosky@h... [mailto:dirosky@h...]
Sent: Wednesday, May 15, 2002 12:20 PM
To: ASP Web HowTo
Subject: [asp_web_howto] Option Value Question
Hi,
I have the following option value code:
Response.Write "<OPTION VALUE="&oRS("BudgetHolder1")&">"&oRS("Details")
&"</OPTION>"
and use it to pass the value of budgetholder1 in a form. budgetholder1 is
a name eg tom brown but when the form is processed all that is added to
the database is tom.
Anyone know why?
Thanks,
Patrick
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20
Message #5 by "Paddy Anigbo" <dirosky@h...> on Wed, 15 May 2002 17:44:38 +0100
|
|
------=_NextPart_001_0000_01C1FC38.2F36E760
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Thanks Peter
----- Original Message -----
From: Peter Rooney
Sent: 15 May 2002 12:25
To: ASP Web HowTo
Subject: [asp_web_howto] RE: Option Value Question
Patrick
In HTML, "whitespace" is considered to mean "end of element". Unless the
whitespace is enclosed in quote marks
try this:
Response.Write "<OPTION VALUE=3D'" & oRS("BudgetHolder1") & "'>" &
oRS("Details") & "</OPTION>"
Peter
-----Original Message-----
From: dirosky@h... [mailto:dirosky@h...]
Sent: Wednesday, May 15, 2002 12:20 PM
To: ASP Web HowTo
Subject: [asp_web_howto] Option Value Question
Hi,
I have the following option value code:
Response.Write "<OPTION VALUE=3D"&oRS("BudgetHolder1")&">"&oRS("Details")
&"</OPTION>"
and use it to pass the value of budgetholder1 in a form. budgetholder1 is
a name eg tom brown but when the form is processed all that is added to
the database is tom.
Anyone know why?
Thanks,
Patrick
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramm
e
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramm
e
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramm
e
r-20
--
Virus scanned by edNET.
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.361 / Virus Database: 199 - Release Date: 5/7/2002
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.361 / Virus Database: 199 - Release Date: 5/7/2002
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramm
e
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramm
e
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramm
e
r-20
to unsubscribe send a blank email to leave-asp_web_howto-1097439B@p...
x.com.Get more from the Web. FREE MSN Explorer download : http://explore
r.msn.com
Message #6 by "Scott Dempsey" <scottd@c...> on Wed, 15 May 2002 11:19:12 -0700
|
|
I'm going out on a limb and thinking it's that you haven't enclosed the
details in some sort of quotes.
Try something like:
Response.write ("<option value='> & oRS("blahblah") & "'>" &
oRS("details") & "</option>"
- Scott
-----Original Message-----
From: dirosky@h... [mailto:dirosky@h...]
Sent: Wednesday, May 15, 2002 12:20 PM
To: ASP Web HowTo
Subject: [asp_web_howto] Option Value Question
Hi,
I have the following option value code:
Response.Write "<OPTION VALUE="&oRS("BudgetHolder1")&">"&oRS("Details")
&"</OPTION>"
and use it to pass the value of budgetholder1 in a form. budgetholder1
is
a name eg tom brown but when the form is processed all that is added to
the database is tom.
Anyone know why?
Thanks,
Patrick
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20
|
|
 |