Tuesday, April 4, 2017

why form not submit in laravel 5.4

i have a form for User Registration, it was working perfect before but now its not submit and doesn't get any error. i tried to show all my post data but its not post any data.. please help

 <form role="form" id="reg-form" method="post" class="form-horizontal" action="">
                    
                    <h2>Create Account</h2>
 <div class="form-group">
   <div class="col-sm-6" id="user-firstname">
      <input type="text" class="form-control" id="firstName" name="firstName" placeholder="First Name" required="required">
    </div>
    <div class="col-sm-6">
      <input type="text" class="form-control" id="lastName" name="lastName" placeholder="Last Name">
    </div>
 </div>
  <div class="form-group">
    <div class="col-sm-12">
      <input type="text" class="form-control" id="displayName" name="displayName" placeholder="Choose your display name" required="required">
    </div>
</div>
 <div class="form-group">
    <div class="col-sm-12">
      <input type="email" class="form-control" id="email" name="email" placeholder="Your Email" required="required">
    </div>
 </div>
 <div class="form-group">
   <div class="col-sm-12">
      <input type="password" class="form-control" id="password" name="password" placeholder="Password" required="required">
    </div>
 </div>
 <div class="form-group">
   <div class="col-sm-12">
    <input type="password" class="form-control" id="confirm_password" name="confirm_password" onkeyup="checkPass(); return false;" placeholder="Confirm Password" required="required">
   <span id="confirmMessage" class="confirmMessage"></span>
  </div>
</div>
   <button type="submit" class="btn btn-primary btn-block">Sign in</button>
</form>

Route

Route::post('/create_user', 'Auth\RegisterController@createUser');

Method

public function createUser(Request $request)
{
    dd($request->all());
 }



via Jamal Ahmad

Advertisement