0
I am trying to send a parameter to another page .php
when clicking a button, I would not like this parameter to be displayed in the browser, I tried it with this code here, but the parameter was exposed.
function Oportunidade(pPar){
var url = 'iAutenticacao.php?IdOportunidade='+pPar;
window.location.href = url;
}
I had also made some attempts with ajax, but without success. How can I do that?
I saw that you use PHP, you could use the MVC standard to do this. https://goo.gl/wtkKBz
– Lucas de Carvalho
I think javascript will always show the parameter somewhere in the browser. You shouldn’t worry so much about it. If this parameter is something sensitive to application security, it should not be used in javascript.
– Andrei Coelho
Hello, @Andreicoelho, you’re covered in reason
– adventistapr
I just don’t say SURE, why I’m really not sure about this.
– Andrei Coelho