We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,277 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

formmail broken

This is a website I designed a few years ago. The CONTACT and EMAIL SUBSCRIBE forms used to work, and they are broken.

When I click on the Submit button, I get a server error saying "The server encountered an internal error or misconfiguration and was unable to complete your request." I don't see what I'm doing wrong. If I can get pointed toward a solution, I'd really appreciate it.

These are links to the pages, followed by the relevant snippets.
http://roxburyyouthworks.org/pages/contact_test.html
http://roxburyyouthworks.org/pages/email_test.html

This is a link to the formmail file. This file does reside in the cgi-bin folder where it belongs, but I put a copy here so that you could see it.
http://roxburyyouthworks.org/pdf/formmail.pl

This is the code at the beginning of the form section of the HTML page.

<form action="../cgi-bin/formmail.pl" method="post" name="email" id="email">
  <table width="418" border="0" cellpadding="5" cellspacing="0" id="emailtable">
            <input type="hidden" name="subject" value="email list subscribe">
              <input type="hidden" name="recipient" value="info@roxburyyouthworks.org","info@signifydesign.com">
                                          <input type="hidden" name="redirect" value="http://www.roxburyyouthworks.org/pages/thankyou.html">

Thanks!

2
Contributors
1
Reply
9 Hours
Discussion Span
1 Year Ago
Last Updated
2
Views
zalel
Newbie Poster
1 post since Feb 2012
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

A few quick thoughts -

The first two lines of the script look like this

æ²utxtåÖ#!/usr/bin/perl
##############################################################################

Are the characters before the hash (#) in the first line actually in the production version of the script? If so, they need removing.

Is PERL /usr/bin/perl?

Is the script executable?

shibblez
Junior Poster in Training
73 posts since Oct 2010
Reputation Points: 15
Solved Threads: 6
Skill Endorsements: 0

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0592 seconds using 2.69MB