title: Hidden html inputs versus using a pathVariable in the URL of a PUT HTTP request
body: <p>My application currently <strong>makes massive use of hidden inputs</strong> such as:</p>
  
  <pre><code>&lt;input type="hidden" name="id" value="123456"/&gt;
  </code></pre>
  
  <p>For instance, using the above hidden input <strong>I can keep the id/pk of my object without displaying it to the end user</strong>.</p>
  
  <p>I feel this <strong>goes against the principles of REST</strong> and I would like to know whether using a <strong>PUT url</strong> such as:</p>
  
  <p><code>/advertisement/childminder/123456/edit</code> </p>
  
  <p>and doing away with the hidden input altogether <strong>might not be a better idea</strong>...</p>
  
  <p>Can anyone please advise?</p>
  
  <p><strong>edit</strong>: <em>I have edited my question and changed from POST to PUT because I am dealing with modification and not creation.</em></p>