Hide a url

0

I have a problem, I tried Htaccess but I do not know if I did it right and nothing was right. I have a client registry, and when I am in the clients folder and I am going to make a change in a registry it shows in the url this: link

The problem is that I do not want this ?acao=Alterar&id=2 to appear, or rather the rest after the "clients" folder avaliar.php?acao=Alterar&id=2

Someone has a solution, even if it's basic.

    
asked by anonymous 23.08.2018 / 17:45

2 answers

0

If it is a button or a clickable field, it places in href="" the name of a function just to make this change (in php) and within that function it places what you want to do, it's a simple method or it does a POST with javascript (ajax). Through htaccess you can "mask" your url.

    
23.08.2018 / 18:48
0

action = Change and id = 2 are two parameters of the query string required for the evaluate.php page to work correctly, that is, in a summary way, when sending these two parameters to the evaluate.php page, it will know that it will execute the Change action for the client with id 2.

They are two fundamental parameters for the operation of the "application" so it can not without exclusion.

The evaluate.php part identifies the script (php page) to be "called" by the browser, when removing, that is, when only # would fall into the index.php page of the clients folder if the same exists.

However, what was the purpose of removing these two paramenters?

    
24.08.2018 / 09:55