the document.write() works in the current code index, this means that it clears the onclick reference to the link, try adding it to a function instead, or failing that use spnas/divs to write it out.
<a href onClick="spn.innerHTML = '<input type=hidden name=orderBy value=id>'; document.echoDb.submit(); alert('It works at least');">id</a>
<span id=spn></span>
If you are using PHP please use the [PHP] and [/PHP] forum tags for highlighting...
The same applies to HTML and the forums [HTML][/HTML] tags.
Bookmarks