title: Cannot pass value from cgi script back to html form
body: <p>I have a HTML form with a date field named <code>cdt</code>. </p>
  
  <p>I am putting some values into an oracle table through that form using a CGI script. I want to come back to the HTML form and the date field should be retained.</p>
  
  <p>I can easily do that by using the following javascript code in the CGI script.</p>
  
  <pre><code>print "history.go(-1)";
  </code></pre>
  
  <p><strong>However I want to use <code>window.location.href</code> instead due to certain reasons.</strong> 
  I am trying the following in the CGI script but it is not working.</p>
  
  <pre><code>$vdt=$in{cdt};
  print "&lt;script type='text/javascript'&gt;";
  print "var dtvar = $vdt";
  print " window.location.href = '../htdocs/formname.html?cdt=' + dtvar";
  print "&lt;/script&gt;";
  </code></pre>