묻고답하기

제목그대로에요.
폼을 서버로 넘기기 전에 javascript로 array이나 혹은 string을 만들어서 html의 hidden을 이용해서 넘겨줄려고 하는데 어떻게 하죠?

========================================================================
<script>
var thisstring=""
function tempstring()
{
     thisstring="how are you?";
}
</script>
<body>
<form onsubmit="tempstring" action="..." method="post">
<input type="hidden" name="thisstring" value=".....................?????">
</form>
</body>
=========================================================================

좋은 하루되세요..