Solved

Redirecting after form submission

Posted on 2006-06-09
2
185 Views
Last Modified: 2013-12-25
Based on what I know about Perl, I've come to the realization that you can't use "redirect" in the same Perl script where you also print an HTML header.  If you do, the "print redirect" command gets printed to the browser instead of being interpreted as a command.  If this is true, is there any way to use the redirect command in the same Perl script that uses the print->header() or other HTML header command?

Thanks.

0
Comment
Question by:marcparillo
2 Comments
 
LVL 8

Accepted Solution

by:
Perl_Diver earned 250 total points
ID: 16872596
You can't redirect unless you have not yet printed the full header. You need to either print the header later or print the redirection sooner. How you do that depends on your script and what you are trying to do.
0
 
LVL 3

Author Comment

by:marcparillo
ID: 16875044
Thanks -- that's what I figured.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Ever wondered how to display how many visitors you have online. In this tutorial I will show you an easy but effective way to display the number of online visitors in WhizBase. In this article I assume you have read my previous articles and know …
It is becoming increasingly popular to have a front-page slider on a web site. Nearly every TV website,  magazine or online news has one on their site, and even some e-commerce sites have one. Today you can use sliders with Joomla, WordPress or …
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now