Jump to content

[Resolvido] passar duas variaveis via get


acao
 Share

Recommended Posts

boa noite

estou a usar esta função para passar 2 variáveis via get mas apenas passa a primeira

alguém dá uma ajuda!

function SelectLocalPagArq(){
var tpAnunArq = 2;
var valorCboLocal = document.frLocal.cboLocal.value;
document.location.href = 'pesqAnuncios.php?ncp=' + valorCboLocal + '&tpAnun=' + tpAnunArq;
}

cumps

acao

Edited by acao
Link to comment
Share on other sites

De certeza que estás a olhar para o nome certo no servidor?

“There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult.”

-- Tony Hoare

Link to comment
Share on other sites

De certeza que estás a olhar para o nome certo no servidor?

sim,

direciona para a pagina certa e amostra a variável (ncp) com o seu valor, mas a (tpAnun) nem vela,

o facto é que estava a funcionar e deixou de funcionar sem saber a razão, e tive duvidas que faltasse alguma "" ou () , que já tentei alterar mas sem sucesso.

cumps

acao

Edited by acao
Link to comment
Share on other sites

A única razão para isso acontecer é a tua variável valorCboLocal ter valores muito estranhos.

“There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult.”

-- Tony Hoare

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.