I have a Perl CGI script that creates a login screen, i.e. user name and password.
I want, after successful login, the user to be redirected to the next action within the application (another Perl CGI script).
What is the command to redirect one CGI script or to an HTML page?
In HTTP terms you should have your program output a 302 or 303 status code and a Location header.
If you are using CGI.pm then you can use the redirect method to achieve this.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With