title: Setting the value of a hidden input field in django template
body: <p>I have a hidden field defined in my django template,value of which is passed from the view in the context</p>
  
  <pre><code>&lt;input type="hidden" value={{name}}&gt;&lt;/input&gt;
  </code></pre>
  
  <p>I notice a strange problem. If the value in the context is a multiword string like "John Doe", then the input box is</p>
  
  <pre><code>&lt;input type="hidden" value="John" doe&gt;&lt;/input&gt;
  </code></pre>
  
  <p>What is the reason behind this and how can it be fixed ?</p>
  
  <p>Thank You</p>