Reputation: 751
I want to hide get variables from url.now my url showing like this http://www.example.com/supplier/dashbord.php?name=MyRest
i want to show url something like http://www.example.com/supplier/dashbord.php
also i tried .htacces file
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /supplier/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^supplier/(.*) dashbord.php?name=$1
</IfModule>
but it's did't work.is there any solution for me?
Upvotes: 0
Views: 1165
Reputation: 18084
GET
parameters are always passed with the url.
What you actually want are POST
parameters, they are transmitted within the http-body rather than the url and therefore invisible for the average user.
In php, you access them by $_POST['var']
instead of $_GET['var']
, and in an HTML-form, you simply use method="POST"
instead of method="GET"
to transmit form data within the http body.
Upvotes: 1