[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Change in FormMail.pl's handling of forms

Posted on 2006-03-30
Medium Priority
Last Modified: 2010-03-05
I have been running Matt's FormMail.pl for a while now and it has worked fine.

But now it won't redirect to a thank you page or it won't use the internal thank you page. If I try redirecting, after submitting the form i get this in the browser: "Location: http://address_to_thankyou_page.html" . If do not use redirect, I get the default "thank you" in the script - NOT as a html-page but as source code.

I'm on a 2003 Web Edition server with IIS 6 and Active Perl installed.
Question by:Zarakin
  • 2
LVL 39

Expert Comment

ID: 16333262
Anything in your log files?  Error and/or access log?

Author Comment

ID: 16360631
Can't see anything in the perl error.log which is the only one I found.

But I think my problem is related to upgrading to a more secure version of formmail.pl that doesn't allow cross-scripting. The tag "Location:" is there in the script in if-else statement. If no redirect, then print the default thank you page... But either i get the "Location:thankyou.page" or the default page printet to the screen in html.
LVL 39

Accepted Solution

Adam314 earned 375 total points
ID: 16361355
I'm not sure where IIS stores it log files... I think it's somwhere in %windir% though.  

Do you get the same with different browsers?  Have you tried firefox?  

When the script is redirecting, make sure nothing else is printed before the redirect gets printed.  If something else is printed, this will cause the behavior you are seeing.

When it is printing the default "thank you" page, make sure a content type header is printed.


Featured Post


Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

On Microsoft Windows, if  when you click or type the name of a .pl file, you get an error "is not recognized as an internal or external command, operable program or batch file", then this means you do not have the .pl file extension associated with …
A year or so back I was asked to have a play with MongoDB; within half an hour I had downloaded (http://www.mongodb.org/downloads),  installed and started the daemon, and had a console window open. After an hour or two of playing at the command …
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Six Sigma Control Plans
Suggested Courses

873 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