sleekmvc icon indicating copy to clipboard operation
sleekmvc copied to clipboard

$_POST not working

Open unleashed666 opened this issue 10 years ago • 1 comments

if i submit the ezlink form to itself ( eg. action="" ) then i can print out the $_POST array, but if the form submits to "home/submit" then the $_POST array is empty even tho firebug shows url was posted

edit: just checked and if the page url is www.site.com/home/index and the form is set to post to itself then the $_POST array returns empty

unleashed666 avatar May 08 '15 10:05 unleashed666

solved:

added to .htaccess

RewriteEngine On RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.$ - [NC,L] RewriteRule ^.$ index.php [NC,L]

all seems to be working now

unleashed666 avatar May 08 '15 12:05 unleashed666