Hello everyone,

I'm trying to make a simple form that will email to a given email address.

I've been using and modifying this code:
http://robpacker.com/ContactForm/index.php

When I tried it out on my server, I got this message:
"The requested method POST is not allowed for the URL /contact_form.php."

I've searched and seached but I can't seem to find the answer to my problem.
Here's a link to the page I'm doing:
http://farfelu.home.mindspring.com/contact/form.html
and
http://farfelu.home.mindspring.com/contact_form.php

Thanks a bunch and excuse my ignorance,
Alex

    Do you own this webserver, or is it hosted by someone else?

    Also, in contact_form.php, you used the short-tag opener <? when your server does not support it. Use the full <?PHP tag instead.

    EDIT: In addition, you have some HTML headers above your PHP code, but then you expect to use a [man]header/man call later. Remove all of the HTML above the PHP code.

    EDIT2: To try and resolve the 405 error, try creating a .htaccess file in the root of your web directory that looks like this:

    <Limit POST>
    Order allow,deny
    Allow from all
    </Limit>

      Sounds like a web server config error.

      Is PHP code running at all on the server? If not, there is your problem.

      Mark

        Interesting. I've checked it before and it was working. When I did a test this time, it appears it isn't.
        That would definitely be the problem LOL. Thanks so much for your help.

        -Alex

        EDIT: It seems to working on a different server. A few bugs I need to work out. Thanks!

          Write a Reply...