Oh no, its been doing that before the change and I can’t find the problem. I installed another copy on different server and logout works. Strange.
I guess its a cache issue, I went to the other computer and the logout function works.
Just FYI…
Apologies if this is completely wrong (I don’t know much ASP), but this is what I’ve done, and it’s showing nothing;
<%
Function AgeCalc(dtmUserDOB)
Dim intUserAge
intUserAge = Year(Now) - Year(dtmUserDOB)
If Month(Now) = Month(dtmUserDOB) Then
if Day(dtmUserDOB) > Day(NOW()) Then
intUserAge = (intUserAge - 1)
end if
elseif Month(dtmUserDOB) > Month(Now) then
intUserAge = (intUserAge - 1)
End If
AgeCalc = intUserAge
End Function
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
[B][I]<code cut down>[/I][/B]
<tr valign="middle">
<td width="100" height="20" class="underl">Age :</td>
<td height="20" class="underl"><% intMemberAge = AgeCalc("01/27/1984") %> years old</td>
</tr>
Age :
<% [COLOR="Red"]Response.Write(AgeCalc("01/27/1984")) %> years old
You’re a star! Cheers dude!