Google recaptcha using php

https://www.google.com/recaptcha/admin/create site_key:  6LcvdScrAAAAAPcLNrU6Yn4iSHv9bUatTi600pab secret_key:  6LcvdScrAAAAABW238OshnA0j46EgUd9sVwvqqs4 <script src="https://www.google.com/recaptcha/api.js" async defer></script> <form action="submit.php" method="post"> <!-- Your form fields here --> <div class="g-recaptcha" data-sitekey="YOUR_SITE_KEY"></div> <input type="submit" value="Submit"> </form> submit.php <?php if ($_SERVER['REQUEST_METHOD'] ===…

0 Comments

Export pdf using php with image support

composer require dompdf/dompdf <?php require 'vendor/autoload.php'; use Dompdf\Dompdf; // Initialize dompdf $dompdf = new Dompdf(); // Load HTML content $html = '<h1>Export HTML to PDF</h1><p>This PDF is generated using Dompdf.</p>';…

0 Comments

Push Notification in php and laravel

A. Without ajax load with page loading <a class="bell_notification_clicker" href="#"> <img src="{{ asset('/assets/') }}/img/icon/bell.svg" alt=""> <?php $purchase_plan_count = DB::table('purchase_plan')->where('notification', 0)->count(); if($purchase_plan_count > 3){ $purchase_plan_count = 3; } ?> <span>{{$purchase_plan_count}}</span> </a>…

0 Comments

Form Serialize method using ajax and php

  <html> <head> <script src="http://code.jquery.com/jquery-1.9.1.js"></script> <script> $(function () { $('form').on('submit', function (e) { e.preventDefault(); $.ajax({ type: 'post', url: 'post.php', data: $('form').serialize(), success: function () { alert('form was submitted'); } });…

0 Comments

What is php ?

Hello friends, you are very welcome to our PHP tutorial. Friends, from today we are going to start the tutorial of PHP, what is PHP? So friends, PHP is a…

0 Comments