Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Submit and draft button use in laravel

<form action="{{route('post.create')}}" method="post">
  <input type="hidden" value="{{ Session::token() }}" name="_token">
  <button name="submit" onclick="this.disabled=true;this.value='Sending, please 
    wait...';this.form.submit();" class="btn btn-primary" align="right">Submit</button>

  <button name="draft" onclick="this.disabled=true;this.value='Sending, please 
   wait...';this.form.submit();" class="btn btn-outline-primary" align="right" style="font-size:8px;font-weight: bold">Save draft</button>

</form>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Submit #draft #button #laravel
ADD COMMENT
Topic
Name
1+3 =