Forum Moderators: open
<% Option Explicit %>
<html>
<%
Dim Dice1, Dice 2, Total
Randomize
Dice1 = Int(Rnd *6) + 1
Dice2 = Int(Rnd *6) + 1
Total = Dice1 + Dice2
%>
<% If Dice1 = 1 And Dice2 = 1 Then %>
Snake Eyes<p>
<% ElseIf Dice1 6 And Dice2 = 6 Then %>
Box Cars<p>
<% ElseIf Total = 7 Then %>
Lucky Number 7!<p>
<% ElseIf Total = 11 Then %>
11, Nice Craps roll.<p>
<% Else %>
Dice 1: <% = Dice1 %><p>
Dice 2: <% = Dice2 %><p>
Total: <%Total %><p>
<% End If %>
</html>
Is it me, or is it the machine that's scewing up? Please help, as I'm really starting to feel like an idiot.
first step will be to turn off the "friendly" error messages (the http 500 errors) in your browser.
look in tools -> internet options -> advanced for "show friendly http error messages". once turned off you should see proper ASP error messages which should give you a clue.
Go to Tools ¦ Internet Options
Click Advanced tab
Find the "Show friendly HTTP error messages" setting.
Now, I don't remember if you turn it on or off...but you'll figure that out by trial and error. I think you turn it ON (but I checked mine and it is off..hmmmm).