On a separate note, jumping in and out of VBScript causes system
slowdown, and in the long run you'll have better performance if you were
to do something like this:
<%
ElseIf ThePresented = "" Then
Response.write ("<h3>Please indicate whether you have presented this
issue to someone for resolution.</h3> <input type='button' value='Back'
onclick='Javascript:history.go(-1)' />")
Notice the change of double quotes(") to single (').
Casey
-----Original Message-----
From: Gerenday, Perry (P.) [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 03, 2002 4:20 PM
To: [EMAIL PROTECTED]
Subject: [wdvltalk] ASP or VBscript problem
I have a web form that sends its values to an asp page where the form
receives very simple validation. i.e.: if the input has a value -
continue, if it doesn't - tell the user what to fill in. One of the
inputs on the form is a set of radio buttons; Yes or NO. If the user
clicks "Yes" they also need to fill in a date text box. My question is;
how do I tell whether the radio value is Yes or No? Here is what I'm
doing which is not working.
...
<%
ElseIf ThePresented = "" Then %>
<h3>Please indicate whether you have presented this issue to someone for
resolution.</h3> <input type="button" value="Back"
onclick="Javascript:history.go(-1)" />
<%
ElseIf ThePresented = "Yes" Then %>
<h3>The Presented value = Yes.</h3><!-- This is the test text.--> <input
type="button" value="Back" onclick="Javascript:history.go(-1)" />
...
Next I want to validate a date value if "ThePresented" equals Yes, and
skip the validation if "ThePresented" equals NO.
TIA
Perry Gerenday
www.webinitiative.net
____ � The WDVL Discussion List from WDVL.COM � ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED]
Send Your Posts To: [EMAIL PROTECTED]
To change subscription settings to the wdvltalk digest version:
http://wdvl.internet.com/WDVL/Forum/#sub
________________ http://www.wdvl.com _______________________
You are currently subscribed to wdvltalk as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]