formmail

PHP "Wrong referrer" error when submitting a mail form

I am pretty new to php, but I am learning! I have a simple form on a client website. I am testing the form and when I click submit, I get the following error: Form Mail Script Wrong referrer (referring site). For security reasons the form can only be used, if the referring page is part of this website. Note for the Admin: Please add t...

Attach file in formmail. (php formmail)

I'm writing a mailform i php for placeing orders, and sense they have to get send a picture to me for the order to work properly, I'd like to be able to attach the file in the formmail. How shuld I do this? I have seen some different sulutions but non that I've complety understand. ...

Do Perl CGI programs have a buffer overflow or script vulnerability for HTML contact forms?

Greetings all, My hosting company says it is possible to fill an HTML form text input field with just the right amount of garbage bytes to cause a buffer overflow/resource problem when used with Apache/HTTP POST to a CGI-Bin Perl script (such as NMS FormMail). They say a core dump occurs at which point an arbitrary script (stored as p...

PHP Form Sending Information to Limbo!

I was told my client's quote form has not been generating very many emails. I have learned that although the form brings you to a confirmation page, the information never reaches the recipient. I have altered the code so it goes to my office email for testing purposes. If I post code for the form elements below, would someone be able to...

Looking for a replacement for NMS FormMail.pl

I have a simple contact form that I knocked up in a few minutes using NMS FormMail.pl. But the customer has requested that I have a second email address entry field, and validation that kicks them back if the two addresses are different. I could add the validation to FormMail.pl, but before I do, I thought I'd ask if there is a better ...

How should I redirect users in a formmail script?

So I'm using a basic formmail script. Within the script I'm using a redirect variable. The value of the redirect is something like: http://www.mysite.com/NewOLS_GCUK_EN/bling.aspx?BC=GCUK&IBC=CSEE&SIBC=CSEE When the redirect action happens however, the URL appears in the browser as: http://www.mysite.com/NewOLS_GCUK_EN/bli...

Passing values to formmail.cgi without refresh (HTML form PHP handling)

My host has a formmail.cgi script to send html form data to emails (http://formmail.dreamhost.com/), but I dont understand how to pass it values that it understands. Ive tried using this method to pass form values: HTML: <form id="contact_form" action="http://formmail.dreamhost.com/cgi-bin/formmail.cgi" method="POST"> <input type=...

How to adapt the formmail script to 2 thankyou pages, depending on validation.

right now I use a simple formmail script with some JavaScript form validation. I think what I need to do is add to the JavaScript an if statement which says if all of these fields validate go to this page, if only 10 fields validate go to this page, if those 10 fields don't validate, produce the standard error messages. the problem i...

How can I mod formmail so that the error page still sends and email and redirects?

So far it submits the email but no matter what I do it will not redirect (server errors) and I need to redirect it to a custom error page. How would I modify this to make it work? Original code: # If any error fields have been found, send error message to the user. # if (@error) { &error('missing_fields', @error) } new code: ...

Should I use formmail or PHP mail?

I recently started working on a web project which was already in progress; the guy who built the foundation for it had the signup page sending the form fields to a formmail Perl script, so that he could get an email when a user signs up. I'm not familiar with Perl, and my inclination is to just use the PHP mail() function and drop the ...