Hi all
There is prob another way easier way to do what im trying to do but i cannot think of it ATM..
i want to get the comments of a that i have made chat room and then i want to write them out right?
well you can only have like 5 or so messages then the page goes all screwed from the frame thing that i am using.. you have to keep on scrolling down.. well i need to get the first 5 comments the when a sixth is entered i need to get rid of number1 and include number6... well this is the code i can up with....
If Request("BUTTON"="Submit" Then
If i <= 5 Then
Application("comments"=Application("comments" & "<P>" & Request("comments"
Application("comments"& i)=Request("comments"
i=i+1
Else If i > 6 Then
Application("comments0"=Application("comments1"
Application("comments1"=Application("comments2"
Application("comments2"=Application("comments3"
Application("comments3"=Application("comments4"
Application("comments"=Application("comments0" & "<p>" & Application("comments1" & "<p>" & Application("comments2" & "<p>" & Application("comments3" & "<p>" & Request("comments"
Else Application("comments"= ""
End If
End If
End If
The prop is that i cannot get i to increment.. i gets to 1 then its like its resetting back to 0 and then incrementing to one again..
any help??
Thanks Heaps
PS.. if any body can think of a better way please say...
There is prob another way easier way to do what im trying to do but i cannot think of it ATM..
i want to get the comments of a that i have made chat room and then i want to write them out right?
well you can only have like 5 or so messages then the page goes all screwed from the frame thing that i am using.. you have to keep on scrolling down.. well i need to get the first 5 comments the when a sixth is entered i need to get rid of number1 and include number6... well this is the code i can up with....
If Request("BUTTON"="Submit" Then
If i <= 5 Then
Application("comments"=Application("comments" & "<P>" & Request("comments"
Application("comments"& i)=Request("comments"
i=i+1
Else If i > 6 Then
Application("comments0"=Application("comments1"
Application("comments1"=Application("comments2"
Application("comments2"=Application("comments3"
Application("comments3"=Application("comments4"
Application("comments"=Application("comments0" & "<p>" & Application("comments1" & "<p>" & Application("comments2" & "<p>" & Application("comments3" & "<p>" & Request("comments"
Else Application("comments"= ""
End If
End If
End If
The prop is that i cannot get i to increment.. i gets to 1 then its like its resetting back to 0 and then incrementing to one again..
any help??
Thanks Heaps
PS.. if any body can think of a better way please say...