Hi guys,
Having a strange issue here...
If I submit a form and set the method as post, the post array is completely blank, however if I change the method to get, the array is full of data.
This script used to work, so I don't know what I've done to mess it up, anything obvious you can think of?
I have some htaccess rules that could possibly affect it (not sure)?
Here's the htaccess code anyway:
The code for the form is just simply:Code:DirectoryIndex home.php Options +FollowSymLinks Options -Indexes RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} !(.*)/$ RewriteRule ^(.*)$ http://antidote.dev/$1/ [L,R=301] RewriteRule ^friends/$ friends.php [L] #RewriteRule ^shop/(.*)/(.*)/$ shop.php?category=$1&prod=$2 [L] RewriteRule ^friends/(.*)/$ friends.php?id=$1 [L] RewriteRule ^friends/(.*)$ friends.php?id=$1 [L] RewriteRule ^tags/(.*)$ tags.php?tag=$1 [L] #RewriteRule ^shop/(.*)/$ shop.php?category=$1 [L] RewriteRule ^shop/category/(.*)/?$ shop.php?category=$1 #RewriteRule ^shop/(.*)/(.*)$ shop.php?category=$1&prod=$2 [L] RewriteRule ^shop/(.*)/?$ shop.php?prod=$1 [L] RewriteRule ^links/$ links.php RewriteRule ^ethics/$ ethics.php RewriteRule ^tags/$ tags.php RewriteRule ^friends/$ friends.php RewriteRule ^blog/$ blog.php RewriteRule ^downloads/$ downloads.php RewriteRule ^stockists/$ stockists.php RewriteRule ^contact/$ contact.php RewriteRule ^home/$ home.php RewriteRule ^about_us/$ about_us.php RewriteRule ^shop$ shop.php RewriteRule ^basket/$ basket.php [QSA] RewriteRule ^thanks/$ thanks.php RewriteRule ^terms/$ terms.php RewriteRule ^error/$ error.php ErrorDocument 404 /error # BEGIN Gzip <IfModule mod_deflate.c> AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript </IfModule> # END Gzip
Hope you can help me out.Code:<form action="/basket" method="post"> <!-- A few form elements --> </form>



Reply With Quote


Bookmarks