I am making a website in PHP, everything is working fine, but when I changed the .htaccess file post form method is not posting the data.
.htaccess file (I found this on stackoverflow.com)
#Options +FollowSymLinks -MultiViews
# Turn mod_rewrite on
RewriteEngine On
RewriteBase /
## don't touch /forum URIs
RewriteRule ^forums/ - [L,NC]
## hide .php extension snippet
# To externally redirect /dir/foo.php to /dir/foo
RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s([^.]+)\.php [NC]
RewriteRule ^ %1 [R,L]
# To internally forward /dir/foo to /dir/foo.php
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*?)/?$ $1.php [L]
form
<form method="post" id="form" action="view_images.php">
<input type="text" name="img" value="images/1.jpg" id="img_name" />
<input type="submit" id="submit" value="submit" />
</form>
any ideas what is wrong?