Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Redirecting after form submission

Posted on 2006-06-09
2
Medium Priority
?
196 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 1000 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

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

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

A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

971 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