The Mudcat Café TM
Thread #57839   Message #913481
Posted By: GUEST,Jon
19-Mar-03 - 11:32 AM
Thread Name: Separation of Music and B.S.
Subject: RE: Separation of Music and B.S.
JennyO, the "post page" probably redirects to the main page (threads.cfm) when it has done it's job.

There are workarounds to this. The Annexe for example offers 2 views although the one view, more in common with other systems such as the popular UBB one is probably never used.

After a post is made, I redirect to a small page, default.asp. It relies on a cookie bieng set. Here is the actual code I use:

  'this bit tries to set a cookie when "switch mode" is clicked
select case Request.QueryString("mode")
case "1"
Response.Cookies("mode") = 1
Response.Redirect("default1.asp")
case "2"
Response.Cookies("mode") = 2
Response.Redirect("default2.asp")
end select

'this bit checks the cookie setting and moves the user
select case Request.Cookies("mode")
case "2"
Response.Redirect("default2.asp")
case else
Response.Redirect("default1.asp")
end select

I've no doubt there are better solutions but this one works for us.

Jon


Line breaks added to pre-formatted text. --JoeClone