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