May 29, 2013

Post does not work

Hawiak’s Question:

I have a really annoying problem.

I have a form and when I Submit it it doesn’t set the post.

<form action="pages/post-reply" method="post">
    <div class="row">
        <div class="large-12 columns">
            <textarea name="comment" placeholder="Comment on admin"></textarea>
        </div>
    </div>
    <input type="submit" name="submit" class="tiny button" value="Post"/>
</form>

I use a framework called Processwire and Foundation but I don’t think this has anything to do with it.

When I try it out on my webserver (a dedicated host) it works. I am using a WAMP install on Windows 8. Could this have anything to do with it?

When I use:

    echo $_SERVER['REQUEST_METHOD'];

It just says:

GET

Edit: .htaccess file:
http://textdump.net/raw/2212/

This may be caused by redirection either from the page of pages/post-reply itself or .htaccess rule on the root directory who is redirecting the request pages/post-reply as a GET Request.

Check your .htaccess rule

Author: Nabin Nepal (Starx)

Hello, I am Nabin Nepal and you can call me Starx. This is my blog where write about my life and my involvements. I am a Software Developer, A Cyclist and a Realist. I hope you will find my blog interesting. Follow me on Google+

...

Please fill the form - I will response as fast as I can!