Search
 
SCRIPT & CODE EXAMPLE
 

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>
Comment

PREVIOUS NEXT
Code Example
Php :: Eine Breadcrumb-Navigation ohne Plugin erstellen 
Php :: number to words gujarati php 
Php :: spring delete objest from database that are not in your object list 
Php :: index.php when deploying 
Php :: bar chart in js,php prt 1 
Php :: how to delete single row from grid in magento 
Php :: laravel eloquent save method return value 
Php :: get first row of array php 
Php :: single elimination php code 
Php :: encrypt number 
Php :: how to check php version in cpanel 
Php :: Définir un nombre maximum de mots sur les titres des publications WordPress 
Php :: laravel jobs cache file picking old job file 
Php :: array value auto fill in old value laravel 8 
Php :: How to programmatically grab the product description in WooCommerce? 
Php :: build_Assoc 
Php :: Verifying a login cookie 
Php :: multiple submit button form to multiple php files 
Php :: checks whether the session is set or not, if not it will redirect the user to login page. 
Php :: Round Number Up 
Php :: how to check if page is opened by bot 
Php :: phpstormda php faylning tepasiga avto kommet yozish 
Php :: Binance api buymarket php 
Php :: PHP DOMDocument, Unicode problems 
Php :: seeder name singular or plural laravel 
Php :: bsljeet 
Php :: remove number after decimal in php 
Php :: multi domain codeigniter 
Php :: wordpress not logging when using ngrok 
Php :: select next occurrence phpstorm 
ADD CONTENT
Topic
Content
Source link
Name
2+5 =