Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

submit opens formmail.pl

Featured Replies

hi all, could anyone tell me why my submit button attempts to open formmail.pl rather than submit the form?!

 

link

 

cheers, eighty0ne

  • 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?

  • 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

  • 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... :unsure:

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 ^_^

  • 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?

:blink: 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.

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

  • 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 Form

Below 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

  • Author

hi again, I tried the following:

 

<input type='hidden' name="redirect" value="www.sawbua.org/thanks.html">

 

but got error as expected:

 

Not Found

The requested URL /cgi-bin/www.sawbua.org/thanks.html was not found on this server.

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.