request retrurns empty variable.

C

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") %>
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,138
Messages
2,570,802
Members
47,348
Latest member
nethues

Latest Threads

Top