FTP to your website or use your Web Host Control Panel file manager and delete the .htaccess file in your website Root folder that you added your custom .htaccess code too. You will then be able to log into your site and use AutoMagic to create new standard BPS .htaccess files. To check your Server API take a look at the BPS System Info tab.
Sounds like you added invalid custom .htaccess code to the standard BPS Root .htaccess file/code. My guess (based on the limited specific info and details of the actual problem) is that you have a CGI Server API, but you are trying to add php_value and php_flag directives (DSO ONLY) to your .htaccess file, which can ONLY be added to your BPS Root .htaccess file if your Server API type is DSO or LiteSpeed (DSO).
These php_value and php_flag .htaccess directives can ONLY be used if your Server API is DSO.
php_value post_max_size 20M
php_value upload_max_filesize 20M
php_flag file_uploads On
If your Server API type is CGI you will have to edit or create a custom php.ini file and add these directives in that custom php.ini file.
post_max_size = 20M
upload_max_filesize = 20M
file_uploads = On