HTML Text Input's Value?

I'm making an image button that will redirect you to a page that takes variables from the URL (PHP's Get Method). The only thing I'm missing is a variable for the text input.

Here's the code:

<a href='http://www.moodoid.com/addnewupdate.php?username=<?php echo $_COOKIE['user']; ?>&tag=" + [[[[[TEXT-INPUT-VARIABLE-GOES-HERE]]]]] + "&mood=1'<img src="http://www.moodoid.com/frown.png" /></a>

So does anybody know what I can do here? I'm guessing it would have to be JavaScript somehow?

Thanks

I can't see any Unity reference in that question. I don't even understand where your input field is defined? Do you have an input field on the previous page and you want to use the value in your link? Or is the input field inside this document and you want to use the current value in the link?

If you need the second version (the current value) you have to use a client JScript to alter the link when you click on it. To access the input's value use something like:

document.forms.YOUR_FORM_NAME.YOUR_INPUT_NAME.value

If the value has already been transmitted to your server (via post/get) you have to use $_GET or $_POST in php.

It would be nice if you could tell us how that's related to Unity3d, because it seems that's a HTML/PHP problem.