My Community
September 08, 2010, 09:12:16 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: MethodMailphp 2.0 is out! Please download to resolve deprecated php issues.
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: A little confused...  (Read 1603 times)
Soulwar
Newbie
*
Posts: 2


View Profile
« on: February 20, 2009, 07:42:50 AM »

First, I must say, this seems like a great program. And the installation instructions are very precise and flawless.

 However, what next? Huh Undecided
I can not seem to use it in any way.
Trying to access the form.php thru "www.mysite.com/methodmailphp/form.php" always gets a pop up with "this code is incorrect". (tried uploading pic, but it won't let me..)
Trying to redirect any link to it ends the same.
I also can't seem to add the form to my existing web page. No matter what method I use, ( I know this seems vague) nothing results.

I have some experience with PHP, but it seems to fail me with this problem. Any help, instructions, ideas, etc... would be much appreciated! (I have read  "Using Methodmail" to no avail...)
I really don't want to go back to the old boring contact form I used to use... Sad
Thanks in advance!
Logged
MethodMailphp Support
Administrator
Newbie
*****
Posts: 9


andrew.alba@gmail.com
View Profile WWW
« Reply #1 on: February 23, 2009, 07:05:57 AM »

Sounds like you are trying to access the form processor directly or without the CAPTCHA.

If you do not want to use the captcha you will neeed to comment out lines 12-27 of the form.php :

Code:
/* require_once('recaptchalib.php');
 *
 * $privatekey = $config['recaptcha_private_key'];
 * $resp = recaptcha_check_answer ($privatekey,
 *                               $_SERVER['REMOTE_ADDR'],
 *                              $_POST['recaptcha_challenge_field'],
 *                             $_POST['recaptcha_response_field']);
 *
 * if (!$resp->is_valid) {
 *       echo '<script type="text/javascript">';
 *       echo 'alert("You have entered an incorrect code");';
 *       echo 'history.back(1);';
 *       echo '</script>';
 *       exit;
 * }
 * else {
 */

as well as lines 359:

Code:
if (count($errors) > 0)
        error();
// } COMMENT OUT THIS LINE
?>

You will still need to point your form action to www.mysite.com/methodmailphp/form.php with method="post"
Logged
Soulwar
Newbie
*
Posts: 2


View Profile
« Reply #2 on: February 26, 2009, 10:17:02 AM »

Thanks for your response.

Still not having much luck. I have tried...
Other PHP programs I have used, or am presently using, works with any of the above methods.

Either nothing happens or it brings the pop-up as mentioned. I want to use the captcha, but it seems to be calling for it before the form actually starts, which ends up as "incorrect code".

Am I defining the form action incorrectly or using the wrong .php? (form.php)

Thanks again for your time and effort.

Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!