I'm sure someone has solved this. How can you redirect a user using a functioncall, but without a post function? Whenever I run this code I don't get a redirect, I just see the header output. I use this all the time on asp/php server side scripting. I'm trying to demonstrate this on a SBL2e.
for example, if on a page there is a functioncall:
Code: Select all
<!--FUNCTIONCALL gotonewpage() -->
Code: Select all
void gotonewpage(int sock, PCSTR url){
RedirectResponse(sock,"index.htm");
}
HTTP/1.0 302 Redirection Location: index.htm
(followed by whatever else was in the HTML)
Again, this works fine in a post function. But, how can you force a redirect without using a post? Thanks in advance.