Quote:
Originally Posted by devinmaking
you can change the names with htaccess and them call then in like this.
htaccess code:
Code:
RewriteRule ^pagename/pageoption/?$ pagename/.php?pageoption=whatever [L]
or if its variable based:
([A-Za-z0-9-]+)
Code:
RewriteRule ^pagename/([A-Za-z0-9-]+)/?$ pagename/.php?pageoption=$1 [L]
PHP Code:
if(isset($_REQUEST["result"]) && $_REQUEST["result"] == "whatever"){
//do something
}
|
This doesn't answer the question; this takes a 'friendly' display and maps it to the appropriate query string. In either case, the same data is available in the url.
So to answer the OP, no you can't since that is illogical. As spooks mentioned, if you need to look something up provided by a user, they have to provide it to you either explicitly with a post or get, or implicitly with other decisions creating a session or cookie.
There is also no way to alter the viewed url; browsers are controlled by the client, not the server.