ASP Code Error

Status
Not open for further replies.

Unregistered1

Solid State Member
Messages
9
<html>
<body>
<%
dim h
h=hour(now())

response.write("

" & now())
response.write(" (Pacific Time) </p>")
If h<12 then
response.write("Good Morning!")
If h>18 then
response.write("Good Night!")
else
response.write("Good Death!")
end if
%>
</body>
</html>

It works fine before i put

If h>18 then
response.write("Good Night!")

What do i got to do to make it work
 
If h<12 then
response.write("Good Morning!")
elseif h>18 then
response.write("Good Night!")
else
response.write("Good Death!")
end if

In the original code th first If is not closed.
 
Status
Not open for further replies.
Back
Top Bottom