acao Posted April 28, 2015 at 10:17 PM Report Share #582087 Posted April 28, 2015 at 10:17 PM (edited) 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 April 28, 2015 at 10:38 PM by acao Link to comment Share on other sites More sharing options...
KTachyon Posted April 29, 2015 at 11:44 AM Report Share #582110 Posted April 29, 2015 at 11:44 AM 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 More sharing options...
acao Posted April 29, 2015 at 01:20 PM Author Report Share #582119 Posted April 29, 2015 at 01:20 PM (edited) 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 April 29, 2015 at 01:25 PM by acao Link to comment Share on other sites More sharing options...
KTachyon Posted April 29, 2015 at 01:52 PM Report Share #582123 Posted April 29, 2015 at 01:52 PM 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now