title: Razor - umbraco - get value from form and redirect
body: <p>I have a form in Razor I am checking for the post in a form in a Razor macro. I am checking for the form being posted with the in built IsPost variable. I need to get the value from the form (the url) and then the page to the value.</p>
  
  <pre><code>form action="" method="POST"&gt;                      
  &lt;select&gt;
  &lt;option&gt;Please Select&lt;/option&gt;
  
  @foreach(var item in @Model.events){
       &lt;option value="@item.Url"&gt;@item.Name&lt;/option&gt;   
         }
   &lt;/select&gt;
  
  &lt;button id="SubmitForm" type="submit"&gt;Submit Enquiry&lt;/button&gt;  
   &lt;p&gt;@Message&lt;/p&gt;
   &lt;/form&gt;
  </code></pre>