Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php signature capture

<!DOCTYPE html>
<html>
<head>
    <title>PHP Signature Pad Example - ItSolutionStuff.com</title>
    <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.3.1/css/bootstrap.css">
  
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script> 
    <link type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/themes/south-street/jquery-ui.css" rel="stylesheet"> 
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
  
    <script type="text/javascript" src="asset/jquery.signature.min.js"></script>
    <link rel="stylesheet" type="text/css" href="asset/jquery.signature.css">
  
    <style>
        .kbw-signature { width: 400px; height: 200px;}
        #sig canvas{
            width: 100% !important;
            height: auto;
        }
    </style>
  
</head>
<body>
  
<div class="container">
  
    <form method="POST" action="upload.php">
  
        <h1>PHP Signature Pad Example - ItSolutionStuff.com</h1>
  
        <div class="col-md-12">
            <label class="" for="">Signature:</label>
            <br/>
            <div id="sig" ></div>
            <br/>
            <button id="clear">Clear Signature</button>
            <textarea id="signature64" name="signed" style="display: none"></textarea>
        </div>
  
        <br/>
        <button class="btn btn-success">Submit</button>
    </form>
  
</div>
  
<script type="text/javascript">
    var sig = $('#sig').signature({syncField: '#signature64', syncFormat: 'PNG'});
    $('#clear').click(function(e) {
        e.preventDefault();
        sig.signature('clear');
        $("#signature64").val('');
    });
</script>
  
</body>
</html>
Comment

PREVIOUS NEXT
Code Example
Php :: symfony append to file 
Php :: php artisan make:widget 
Php :: wordpress change email new user template 
Php :: try_files $uri $uri/ /index.php?$query_string; 
Php :: substr last 3 characters 
Php :: tinker laravel 8 
Php :: get month days in php 
Php :: strpos 
Php :: php command line check syntax errors 
Php :: custom blade directive 
Php :: text to sha256 converter in laravel 
Php :: check email veriy or not laravel 
Php :: laravel blade multiple can 
Php :: how does substr_compare() works PHP 
Php :: check url parameter if not redirect wordpress 
Php :: php get day of week number 
Php :: livewire check no errors 
Php :: symfony get api data 
Php :: php multi string to single string 
Php :: htaccess after trailing slash page return status 200 
Php :: php array remove the last element 
Php :: create qr code png image of 200*200 using phpqrcode 
Php :: Passing values to blade using redirect() and back() functions 
Php :: php xpath attribute exact 
Php :: iqbal Laravel save record in two table in one line 
Php :: decrypted password php 
Php :: php code add text on existing pdf file 
Php :: laravel all() 
Php :: PHPDoc @method 
Php :: restart php service windows 
ADD CONTENT
Topic
Content
Source link
Name
2+4 =