sleekmvc
sleekmvc copied to clipboard
$_POST not working
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
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