title: how to send a put request from html form in express and node
body: <p>I have a form for editing an object and I want to handle it properly using express 3.x with node.js</p>
  
  <p>edit item route: <code>/item/edit</code> shows a form for editing the object.</p>
  
  <p>I figure I have three options:</p>
  
  <p>1) place a hidden field with a value of "edit" so I can handle it in express properly
  This is a little more work because I have to handle it in <code>app.post('/item', routes.item.post);</code> which also will handle new creations as well as updates.</p>
  
  <p>2) only submit the edit form with jQuery.ajax() put call.
  This allows me to use <code>app.put('/item', routes.item.put);</code></p>
  
  <p>3) send a post request to /item/edit instead of /item to handle the update/edit
  post will only be used for updating at /item/edit: <code>app.post('/item/edit', routes.item.edit.post);</code></p>
  
  <p>Solution #2 is the only one that is intuitive and obvious when looking at the code in app.js and follows standard convention for CRUD. But if javascript is not enabled for some reason, they cannot edit their object.</p>