Jack's FormMail.php (how to?)

LindBlad

Beginner

Posts: 61

3+ Months Ago

Ok, as i didnt get much replies in PHP section, i will try again here.

I have been using phpmyformmail before
http://sourceforge.net/projects/phpmyformmail but it doesnt work on my new server, because of security issues, so i am now trying to set up this Jack's FormMail.php instead.
http://www.dtheatre.com/scripts/formmail

Can someone tell me HOW to do it?...what files do i need for it to work, cause what ever i try, it always gives me the error page saying:

Quote:

The form was not submitted for the following reasons: You are coming from an unauthorized domain. Please use your browser's back button to return to the form and try again.This form is powered by Jack's Formmail.php 5.0/a>

I tried to find tutorials but they all say

Quote:

To set up the FormMail.php script copy it into the directory in which you are planning to use it. It's that plain and simple.

... but well, its not that simple.

Can someone explain this to me please?
What files do i need? Do i have to edit the PHP file?

Sounds like theres a security check within the phpmyformmail.php that needs a glance. Mind copying it here, or if very large, pastebin.com it for me?

LindBlad

Beginner

Posts: 61

3+ Months Ago

Are you saying that you could fix the security issues from that PHP?!?!?
If so, then that could be REALLY great The security stuff that my host provider said that they dont allow was something called: "register_globals" if that tells you anything. To me it doesnt say anything and i didnt even find the words ""register_globals" from the PHP file

# Before you start configuring the system it`s recommend to read "install.txt"
# Your suggestions, and so, are welcome.
# So send me these. Problems, errors, ... are also welcome.
# If you`ve problems with the script, send me a mail.

/* Here you can define the starting text of the email */
$start = "The form with the subject $subject has been submitted. The following is the raw data of that form.\n\n"; /* This is the start text of your email */

/* Now enter the way you post the form... (You can enter POST or GET) - POST HAS GOT MORE SECURITY! */
$vartype = "POST";

Be warned messing with the .htaccess file and using "register_globals on" without knowing the implications is a really bad idea. See http://www.boogdesign.com/b2evo/index.php/a/2008/03/03/fixing_formmail_php_for_register_globals for more info.