PDA

View Full Version : Using Javascript to make a php link...



brad13x
12-22-2005, 11:57 PM
Is there anyway to use something like
userdatadoc.getElementById('userid').innerHTML
to create a php link like this
http://mysite.com/page.php?userid=(the value of userid)
in javascript?

Twey
12-23-2005, 08:28 AM
document.write("<a href=\"http://mysite.com/page.php?userid=" + document.getElementById('userid').value + "\">Click me!</a>");