kwilliams
02-27-2004, 10:58 AM
I've created this script:
<%
var meeting = String(UploadFormRequest("rbMtg"));
if (meeting = "Y") {
var mtgtime = String(UploadFormRequest("txtTime")) + String(UploadFormRequest("select_ampm"));}
else if (meeting = "N") {
var mtgtime = "---";}
Session("Time") = mtgtime;
%>
<html>
<head>
</head>
<body>
<form>
<input type="radio" name="rbMtg" value="Y" CHECKED>
<input type="radio" name="rbMtg" value="N">
</form>
</body>
</html>
I simply want the Session("Time") to be one value if the radiobutton's value is Y, and another value if the radiobutton's value is N. But this statement keeps inserting the first option, whether the first or second RB is selected. The Insert statement I have is set up to insert Session("Time") into the time column.
Does anyone see something obviously wrong with this setup? Thanks for any help in advance.
<%
var meeting = String(UploadFormRequest("rbMtg"));
if (meeting = "Y") {
var mtgtime = String(UploadFormRequest("txtTime")) + String(UploadFormRequest("select_ampm"));}
else if (meeting = "N") {
var mtgtime = "---";}
Session("Time") = mtgtime;
%>
<html>
<head>
</head>
<body>
<form>
<input type="radio" name="rbMtg" value="Y" CHECKED>
<input type="radio" name="rbMtg" value="N">
</form>
</body>
</html>
I simply want the Session("Time") to be one value if the radiobutton's value is Y, and another value if the radiobutton's value is N. But this statement keeps inserting the first option, whether the first or second RB is selected. The Insert statement I have is set up to insert Session("Time") into the time column.
Does anyone see something obviously wrong with this setup? Thanks for any help in advance.