#1 Formmail bug


NMS FormMail Version 3.14c1 has a bug in which the script errors "The HTML form fails to specify the POST method" on submit.

The error is on line 2235: if ($method ne 'POST')
The 'ne' operator is wrong and should be 'eq'.

I ran into this when my web host switched to a new platform and the NMS script no longer worked.


  • Nobody/Anonymous

    Logged In: NO

    You can delete this bug post. It is the server NMS is residing on that is somehow flipping the POST method to a GET method. I was never able to figure out why, but this "fix" was made to get around it. I am not confident that this "fix" doesn't compromise NMS's security so I have no alternative but to switch to a different form script.

  • Dave Cross

    Dave Cross - 2008-03-02

    Logged In: YES
    Originator: NO

    It looks to me as though the existing code is exactly right. The method is called "check_method_is_post" and the logic basically says:

    if ($method ne 'POST') {
    # return an error
    } else {
    # everything is ok

    I can't see any problem with the code as it exists.


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks