473,396 Members | 2,018 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

request retrurns empty variable.

Col
Hi all,

On my asp form I have the simple code as below. The idea is that I check the
client browser version and store it in BTYP. If I make BTYP a text input I
can see the value OK.
When I submit and request BTYP from l0008ps.asp I get an empty variable. How
do I hold my mouth while doing this.

**********firstpage.asp

<head>
<script language="javascript">
function checkOK( thisform ) {
{ return true }
}

function checkBT() {
if (navigator.appName == "Microsoft Internet Explorer" &&
navigator.appVersion.indexOf(MSIE6) != -1)
{ return true }
else {
if (navigator.appName == "Netscape" && navigator.appVersion >= "4.0")
{ return true }
else
{ return false }
}
}
</script>

</head>

<body>
<input type="hidden" name="BTYP" size="10" maxlength="10" border="1"
bordercolor="#000000" width="40%">
<form method="post" width="800" action="l0008ps.asp" onsubmit="return
checkOK(this)">

//rest of code

<script language="javascript">
var brow= checkBT();
if ( brow == true ) {
BTYP.value=1;
}
else {
BTYP.value=0;
}
</script>

</body>
*****************l0008ps.asp

<% ubt=request("BTYP") %>

Nov 3 '06 #1
1 1287

<form method="post" width="800" action="l0008ps.asp" onsubmit="return checkOK(this)">
<input type="hidden" name="BTYP" size="10" maxlength="10" border="1"
bordercolor="#000000" width="40%">
</form>



"Col" <ne***************@hotmail.comwrote in message news:ei**************@TK2MSFTNGP02.phx.gbl...
Hi all,

On my asp form I have the simple code as below. The idea is that I check the client browser version and store it in BTYP. If I
make BTYP a text input I can see the value OK.
When I submit and request BTYP from l0008ps.asp I get an empty variable. How do I hold my mouth while doing this.

**********firstpage.asp

<head>
<script language="javascript">
function checkOK( thisform ) {
{ return true }
}

function checkBT() {
if (navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.indexOf(MSIE6) != -1)
{ return true }
else {
if (navigator.appName == "Netscape" && navigator.appVersion >= "4.0")
{ return true }
else
{ return false }
}
}
</script>

</head>

<body>
<input type="hidden" name="BTYP" size="10" maxlength="10" border="1" bordercolor="#000000" width="40%">
<form method="post" width="800" action="l0008ps.asp" onsubmit="return checkOK(this)">

//rest of code

<script language="javascript">
var brow= checkBT();
if ( brow == true ) {
BTYP.value=1;
}
else {
BTYP.value=0;
}
</script>

</body>
*****************l0008ps.asp

<% ubt=request("BTYP") %>

Nov 3 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: W. Loo | last post by:
Hi, I've got a question regarding the usage of Request.ServerVariables. I'm not sure this is really a ASP question, so redirects to a more appropriate newsgroup are welcome. I have a variable...
4
by: Max | last post by:
Hello. This is the first time I've posted to a newsgroup, and I do this because I'm in desperate need of help. I'm working a user management system, and when I activate a user that has registered...
5
by: mvr | last post by:
Hi all IIS 5.0, ASP, and https:// I have "DataEntrypage.asp" which is a data entry page(about 250 data elements includes text boxes, radio buttons, check boxes, drop down boxes etc). ...
35
by: michael.casey | last post by:
The purpose of this post is to obtain the communities opinion of the usefulness, efficiency, and most importantly the correctness of this small piece of code. I thank everyone in advance for your...
2
by: Gus Gustafson | last post by:
I set ndi in a repost of a page: window.location.href= '../Test/test.aspx' + '?ndi=' + theform.domain_SELECT.options.selectedIndex; In the test.aspx.cs code-behind, I test if ndi is set as ...
4
by: Jake | last post by:
I need to know whether a request for a resource on our web server is coming from a particular affiliate domain or from another domain. In my testing, the HTTP_REFERER variable sometimes is empty....
2
by: Kim | last post by:
How do I get all walues if my querystring is empty? If I have a table with let's say 10 rows/records, (ID 1-10). I then have a recordset with request.querystring("id") and get the record having the...
3
by: dihola | last post by:
Hi, I have a website running in IIS7 and it seems to be creating a new session for every request I make. The values I store in Session are lost with every request. This is the forms bit in my...
19
by: =?ISO-8859-1?Q?Nordl=F6w?= | last post by:
I am currently designing a synchronized queue used to communicate between threads. Is the code given below a good solution? Am I using mutex lock/unlock more than needed? Are there any resources...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.