You'll just have to add a tiny Javascript snippet:
if (document.location.hash)
document.getElementById('testbox').value = decodeURIComponent(document.location.hash.substr(1));
For obvious reasons you'll have to adjust the id of the text box. It gets a bit more complicated in case you'd like to pass more than one value.
The call to decodeURIComponent()
is optional, but required in case you're passing characters like spaces or non-alphanumerical stuff (just to be sure).