print header; print start_html("Login"); ... print redirect("http//192.168.1.5/train/main.htm");
You can't use both redirect and output something else to the browser. If I understand what your code is doing, you probably want to wait with outputting the header and HTML until it's clear the user isn't being redirected.
I see a few more points in your code that could be improved:
In reply to Re: 302 Found Location Message
by haukex
in thread 302 Found Location Message
by Walter_T
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |