value from HTML textbox to Javascript var
<p>Hi want to store what user input into the textbox into my javascript var to be passed to my external PHP page, </p>

<p>I can pass the variable if i just define a value like mySite= 22 but not from what user enters into the text box.</p>

<p>Please help me to get access to the texbox.value</p>

<pre><code>  &lt;form method="post" action="" onsubmit="submitFun(this)"&gt;
  &lt;input type="text" name="order_IDsearch" id="order_IDsearch"onBlur="javascript:setmysite(this);"&gt;

    &lt;input type="submit" /&gt;

     &lt;/form&gt; 



  &lt;script type="text/javascript"&gt;


   var mySite = '';
   function setmysite(v1) {

   var parent = document.getElementById('list');
   var element = parent.GetElementsByTagName('order_IDsearch')[0];

   mySite = element;


   }

   function submitFun(f1) {

   t = './get_order.php?s=' + mySite;
   t = encodeURI (t);
   f1.action = t; 
   f1.submit();
   return true;
   }
</code></pre>
