Aug 22, 2007 #1 filipel Programmer Joined Aug 13, 2007 Messages 42 Location PT Hi i want to pass the value of a input type="text" by this <a href="novidades.php?id=dominio.value">Ver Novidades</a> dominio is the id of the input text
Hi i want to pass the value of a input type="text" by this <a href="novidades.php?id=dominio.value">Ver Novidades</a> dominio is the id of the input text
Aug 22, 2007 #2 feherke Programmer Joined Aug 5, 2002 Messages 9,541 Location RO Hi Code: <a href="novidades.php?id=" onclick="this.href+=document.getElementById('dominio').value">Ver Novidades</a> Feherke. http://rootshell.be/~feherke/ Upvote 0 Downvote
Hi Code: <a href="novidades.php?id=" onclick="this.href+=document.getElementById('dominio').value">Ver Novidades</a> Feherke. http://rootshell.be/~feherke/
Aug 24, 2007 Thread starter #3 filipel Programmer Joined Aug 13, 2007 Messages 42 Location PT What i want to do is if the dominio value <>' ' the value passes through the function,else not and doesnt go to the novidades page. Upvote 0 Downvote
What i want to do is if the dominio value <>' ' the value passes through the function,else not and doesnt go to the novidades page.
Aug 24, 2007 #4 feherke Programmer Joined Aug 5, 2002 Messages 9,541 Location RO Hi Not sure what you mean. This ? Code: <a href="novidades.php?id=" onclick="if(dv=document.getElementById('dominio').value)this.href+=dv;else return false">Ver Novidades</a> Feherke. http://rootshell.be/~feherke/ Upvote 0 Downvote
Hi Not sure what you mean. This ? Code: <a href="novidades.php?id=" onclick="if(dv=document.getElementById('dominio').value)this.href+=dv;else return false">Ver Novidades</a> Feherke. http://rootshell.be/~feherke/
Aug 24, 2007 Thread starter #5 filipel Programmer Joined Aug 13, 2007 Messages 42 Location PT Yes.Thanks once more. Upvote 0 Downvote