title: Javascript Code inside input value
body: <p>I use Maxminds GEOIP tool and just call this after the body:</p>
  
  <pre><code>&lt;script type="text/javascript" src="http://j.maxmind.com/app/geoip.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>To print out the City and State I just paste this into the HTML doc:</p>
  
  <pre><code>&lt;script&gt;document.write(geoip_city());&lt;/script&gt;
  &lt;script&gt;document.write(geoip_region());&lt;/script&gt;
  </code></pre>
  
  <p>I want to pass those values in hidden inputs that I can submit and assign to variables.  What I want is this, but obviously the syntax is way off:</p>
  
  <pre><code>&lt;input type="hidden" name="city" value="&lt;script&gt;document.write(geoip_city());&lt;/script&gt;" /&gt;
  </code></pre>
  
  <p>I've tried searching for it here but couldn't find an answer, can anybody help?  Thanks!</p>