We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

Change in FormMail.pl's handling of forms

Zarakin
Zarakin asked
on
Medium Priority
227 Views
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.
Comment
Watch Question

Top Expert 2009

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

Author

Commented:
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.
Top Expert 2009
Commented:
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.

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.