I have the following code which is created in ASP. I have this in an application that tests a time entered by the user in an input box to times stored in a database such as 08:00, 08:15 etc at 15 minute intervals until 20:00 so quite a few times are being tested. If the time entered by the user matches one in the database then nothing happens else an error is displayed. What I would like is to perform this same function but using Cold Fusion code which is within a WML application. I have tried ways but get error with the <CFLOOP> tag and also it doesn't help by having to implement the code in WML. Any suggestions?
<%
dim found
found = false
Do while NOT RS.EOF
IF RS("Times"
= mytime THEN
found = true
end if
RS.MoveNext
Loop
if not found then
errorForm "Not Correct. "
end if
%>
<%
dim found
found = false
Do while NOT RS.EOF
IF RS("Times"
found = true
end if
RS.MoveNext
Loop
if not found then
errorForm "Not Correct. "
end if
%>