title: How to make SignUp/Login action in one form
body: <p>I working on <strong>my first</strong> ASP.net MVC project and and i got some problems using multiple buttons in one form. </p>
  
  <p>When my user type username&amp;password and then hit login means it will go to welcome page</p>
  
  <p>if user try to Sign Up means it will go to another form field to get Personal information.
  and finally all given information need to store in database and redirect user to welcome page .</p>
  
  <pre><code>  @using (Html.BeginForm("about", "home", FormMethod.Post, new { @id = "msform" }))
  {
       @Html.AntiForgeryToken()
  @Html.ValidationSummary()
  
  
  
  
  
  &lt;!-- progressbar --&gt;
  
      &lt;ul id="progressbar"&gt;
          &lt;li class="active"&gt;&lt;/li&gt;
          &lt;li&gt;&lt;/li&gt;
          &lt;li&gt;&lt;/li&gt;
      &lt;/ul&gt;
  &lt;!-- fieldsets --&gt;
      &lt;fieldset&gt;
          &lt;h2 class="fs-title"&gt;Create your account&lt;/h2&gt;
          &lt;h3 class="fs-subtitle"&gt;Take 60 Seconds With Us&lt;/h3&gt;
          &lt;input type="text" name="UsersName" placeholder="Username" /&gt;
          &lt;input type="password" name="Passsword" placeholder="Password" /&gt;
          &lt;input type="button" name="next" class="next action-button" value="Sign Up" /&gt;
          &lt;input type="button" name="next" class="nexts action-login" value="Log In" /&gt;
          &lt;input type="submit" value="+" /&gt;
      &lt;/fieldset&gt;
      &lt;fieldset&gt;
          &lt;h2 class="fs-title"&gt;Personal Information&lt;/h2&gt;
          &lt;h3 class="fs-subtitle"&gt;We will never share&lt;/h3&gt;
          &lt;input type="text" name="phone" placeholder="Email" /&gt;
          &lt;input type="text" name="phone" placeholder="Phone Number" /&gt;
          &lt;input type="text" name="date" placeholder="Date of Birth" /&gt;
          &lt;input type="text" name="gender" placeholder="Gender" /&gt;
          &lt;input type="button" name="previous" class="previous action-button" value="Previous" /&gt;
          &lt;input type="button" name="next" class="next action-button" value="Next" /&gt;
      &lt;/fieldset&gt;
      &lt;fieldset&gt;
          &lt;h2 class="fs-title"&gt;Make SomeOne Alive&lt;/h2&gt;
          &lt;h3 class="fs-subtitle"&gt;A donor today! A hero tommorow!&lt;/h3&gt;
          &lt;input type="text" name="fname" placeholder="Blood Group" /&gt;
          &lt;input type="text" name="lname" placeholder="Are You ?" /&gt;
          &lt;input type="text" name="phone" placeholder="State" /&gt;
          &lt;input type="text" name="phone" placeholder="City" /&gt;
          &lt;input type="button" name="previous" class="previous action-button" value="Previous" /&gt;
          &lt;input type="submit" name="submit" class="action-button" value="Submit" /&gt;
      &lt;/fieldset&gt;
  
  }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/QKi6p.jpg" alt="https://onedrive.live.com/redir?resid=D9BCBB2A676D6E13!5561&amp;authkey=!ACAv8vrk-2Any98&amp;v=3&amp;ithint=photo%2cjpg"></p>
  
  <p><img src="https://i.stack.imgur.com/0CYMO.jpg" alt="https://onedrive.live.com/redir?resid=D9BCBB2A676D6E13!5562&amp;authkey=!ANwuCjzTkoSJVCA&amp;v=3&amp;ithint=photo%2cJPG"></p>
  
  <p>But now that I have a login button placed on my view form, I'm totally lost. I don't know how to make when user click login button means it will redirect ,if signUp means it will redirect to another form. How to implement the form</p>
  
  <p><img src="https://i.stack.imgur.com/Q80zu.jpg" alt="Final"></p>