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