August 12, 200817 yr hi all, could anyone tell me why my submit button attempts to open formmail.pl rather than submit the form?! link cheers, eighty0ne
August 12, 200817 yr Author managed to stop it from trying to open the file - just get an 'Internal Server Error' message now! any thoughts on a fix for this?
August 12, 200817 yr Author the message under the Internal Server Error reads: Apache/2.2.9 (Unix) mod_ssl/2.2.9 OpenSSL/0.9.7a DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 mod_fastcgi/2.4.6 FrontPage/5.0.2.2635 Server at sawbua.org Port 80
August 12, 200817 yr Author hey all - bit of an update on the site - still having issues with formmail though have spent the best part of the afternoon trying to get it working - any thoughts? LINK neither the 'register' nor the 'contact' forms work...
August 13, 200817 yr Hey eightyone, Any chance you can put your code up here? The form code mainly... I'm guessing the issue is with the <form method="post/get" action="link".... part... I've been working on a login for ages now so I might be able to help a bit with looking at what issues I had with my code and how I got around it. Best of luck! (Nice website btw) Cari
August 13, 200817 yr Author hi Cari, thanks for your kind words of encouragement i think this is the code you are after? <form id="form1" name="form1" method="post" action="/cgi-bin/formmail.pl"> <input type='hidden' name="recipient" value="info@sawbua.org"/> <input type='hidden' name="subject" value="SAWBUA Contact Form Results"/> <input type='hidden' name="redirect" value="thanks.html"> let me know if not and I will dig around a bit better oh, you might also be interested in my formmail.pl settings? (formmail.pl is in my UK2 cgi-bin along with the thanks.html page - permissions set to 755 on folder and all files) $mailprog = '/usr/sbin/sendmail'; @referers = ('sawbua.org','www.sawbua.org'); @recipients = &fill_recipients(@referers,'sawbua.org','info@sawbua.org'); @valid_ENV = ('REMOTE_HOST','REMOTE_ADDR','REMOTE_USER','HTTP_USER_AGENT'); i have also tried $mailprog = '/usr/bin/sendmail'; yours hopefully, eighty0ne ps. could it be to do with UK2's settings on my cgi-bin?
August 13, 200817 yr Oh dear... I don't know much about Perl. I've been coding in php... hmm... Do you connect to a database at all, like MySQL? I can do a little research on Perl quick and see if I can help... Just out of curiosity is Perl more secure than php? Shall get back to you asap about the Perl stuff, Cari.
August 13, 200817 yr Hi, The error is returning when it is trying to open the thanks.html. To prove to see where the problem lies either have your thanks.html in the root along with all your other html files not in the cgi-bin. Or remove the redirect from the html in the contact page and see if you get the default formail thankyou page. Thanks Paul
August 13, 200817 yr Author Hi, The error is returning when it is trying to open the thanks.html. To prove to see where the problem lies either have your thanks.html in the root along with all your other html files not in the cgi-bin. Or remove the redirect from the html in the contact page and see if you get the default formail thankyou page. Thanks Paul Hi Paul, Thanks for this. The formmail.pl was working all along then? I removed the redirect link section and now receive the default formmail thankyou page: Thank You For Filling Out This FormBelow is what you submitted to info@sawbua.org on Wednesday, August 13, 2008 at 11:16:52 name: check comment: check submit: Submit How do I go about redirecting to my own thanks.html page if it is in the root? The form wants to look in the cgi-bin for it! Maybe if I tried an external www link in the form code? - eg. www.sawbua.org/thanks.html eighty0ne
August 13, 200817 yr Author hi again, I tried the following: <input type='hidden' name="redirect" value="www.sawbua.org/thanks.html"> but got error as expected: Not FoundThe requested URL /cgi-bin/www.sawbua.org/thanks.html was not found on this server.
August 13, 200817 yr Author got it - had to use http://www.sawbua.org/thanks.html schoolboy error it works now, but out of interest, is this the proper way to do it? thanks to all those who helped eighty0ne x
August 13, 200817 yr The way you have it now is ok. There a couple more ways but if it works then it ok. Cheers Paul
Create an account or sign in to comment