Topic: Technology

Fixed Sticky Header scrolling in JQuery Example 0

Fixed Sticky Header scrolling in JQuery Example

Today, We want to share with you Fixed Sticky Header scrolling in JQuery Example.In this post we will show you Fixed sticky header when scrolling, hear for smooth sticky header on scroll jquery we will give you demo and example for implement.In this post, we will learn about Facebook Style Scroll Fixed Header in JQuery with an example.

Fixed Sticky Header scrolling in JQuery Example

There are the Following The simple About Fixed Sticky Header scrolling in JQuery Example Full Information With Example and source code.

As I will cover this Post with live Working example to develop sticky header on scroll jquery, so the fixed header on scroll html for this example is following below.

Fixed sticky header when scrolling

The HTML Part

<HTML>
<HEAD>
	<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
	<title>jQuery Examples - Scroll Fixed Header like Facebook in JQuery - pakainfo.com</title>
</HEAD>
<BODY>

<div id="header_part">
	<h1>Simple Scroll Fix Header like Facebook in JQuery</h1>
</div>

<p>Create A Facebook Like Sticky Sidebar - jQuery Examples<br/><br/><br/><br/><br/></p>
<p> jQuery Fixed Header - Fixed Position Div Plugin with Examples<br/><br/><br/><br/><br/></p>
<p>jquery - CSS and HTML5 for this fixed header on scroll<br/><br/><br/><br/><br/></p>
<p>Sticky Sidebar Scroll Jquery Plugin - Stop Sidebar Scroll at End<br/><br/><br/><br/><br/></p>
<b>fixing a sidebar while scrolling, until bottom with jquery</b>
</BODY>
</HTML>

The JQuery Part

<SCRIPT>
$(document).ready(function() {

	var div = $('#header_part');
	var start = $(div).offset().top;

	$.event.add(window, "scroll", function() {
		var p = $(window).scrollTop();
		$(div).css('position',((p)>start) ? 'fixed' : 'static');
		$(div).css('top',((p)>start) ? '0px' : '');
	});

});
</SCRIPT>

Angular 6 CRUD Operations Application Tutorials

Read :

Summary

You can also read about AngularJS, ASP.NET, VueJs, PHP.

I hope you get an idea about Fixed Sticky Header scrolling in JQuery Example.
I would like to have feedback on my Pakainfo.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.

Multiple Checkbox Check Uncheck All using jQuery 0

Multiple Checkbox Check Uncheck All using jQuery

Today, We want to share with you Multiple Checkbox Check Uncheck All using jQuery.In this post we will show you select multiple rows with checkboxes using jquery datatable, hear for Select/Deselect all checkboxes using jQuery we will give you demo and example for implement.In this post, we will learn about jQuery: Check Uncheck All / Select Deselect All CheckBoxes in HTML with an example.

Multiple Checkbox Check Uncheck All using jQuery

There are the Following The simple About Multiple Checkbox Check Uncheck All using jQuery Full Information With Example and source code.

As I will cover this Post with live Working example to develop jquery select all checkboxes in table column, so the jquery multiselect checkbox select all for this example is following below.

select all checkbox jquery

The HTML Part

<HTML>
<HEAD>
	<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
	<TITLE>Multiple Checkbox Select/Deselect - pakainfo.com</TITLE>
</HEAD>
<BODY>
	<H2>Multiple Checkbox Select/Deselect - pakainfo.com</H2>
<table border="1">
<tr>
	<th><input type="checkbox" id="checkAll"/></th>
	<th>Product</th>
	<th>Price</th>
</tr>
<tr>
	<td align="center"><input type="checkbox" class="product-details" name="product-details" value="1"/></td>
	<td>Laptop</td>
	<td>USD 98256</td>
</tr>
<tr>
	<td align="center"><input type="checkbox" class="product-details" name="product-details" value="2"/></td>
	<td>Samsung Galaxy</td>
	<td>USD 25</td>
</tr>
<tr>
	<td align="center"><input type="checkbox" class="product-details" name="product-details" value="3"/></td>
	<td>Iphone</td>
	<td>USD 120</td>
</tr>
<tr>
	<td align="center"><input type="checkbox" class="product-details" name="product-details" value="4"/></td>
	<td>Books</td>
	<td>USD 120</td>
</tr>
<tr>
	<td align="center"><input type="checkbox" class="product-details" name="product-details" value="5"/></td>
	<td>Apple iPhone 4</td>
	<td>USD 250</td>
</tr>
</table>

</BODY>
</HTML>

The jQuery Code

Add following jQuery source code in HTML part in HEAD section of above Example

<SCRIPT language="javascript">
$(function(){

	$("#checkAll").click(function () {
		  $('.product-details').attr('checked', this.checked);
	});

	$(".product-details").click(function(){

		if($(".product-details").length == $(".product-details:checked").length) {
			$("#checkAll").attr("checked", "checked");
		} else {
			$("#checkAll").removeAttr("checked");
		}

	});
});
</SCRIPT>

Angular 6 CRUD Operations Application Tutorials

Read :

Summary

You can also read about AngularJS, ASP.NET, VueJs, PHP.

I hope you get an idea about Multiple Checkbox Check Uncheck All using jQuery.
I would like to have feedback on my Pakainfo.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.

JavaScript Dynamic Input Form Example 0

JavaScript Dynamic Input Form Example

Today, We want to share with you JavaScript Dynamic Input Form Example.In this post we will show you Create a form dynamically with jquery and submit, hear for dynamic form fields – add & remove bootstrap 4 we will give you demo and example for implement.In this post, we will learn about dynamically add input fields and submit to database with jquery with an example.

JavaScript Dynamic Input Form Example

There are the Following The simple About JavaScript Dynamic Input Form Example Full Information With Example and source code.

As I will cover this Post with live Working example to develop Dynamically html form using jQuery, so the Add Remove Input Fields Dynamically using jQuery for this example is following below.

Dynamically add element in HTML form.

Simple Dynamically add HTML button, textbox, input, checkbox, radio elements in html form using JavaScript.

index.html

<HTML>
<HEAD>
<TITLE>Dynamically add Textbox, Radio, Button in html Form using JavaScript</TITLE>
<SCRIPT language="javascript">
function add(type) {

	//Create HTML an input type dynamically.
	var formfield = document.createElement("input");

	//Assign HTML different input attributes to the formfield.
	formfield.setAttribute("type", type);
	formfield.setAttribute("value", type);
	formfield.setAttribute("name", type);


	var foo = document.getElementById("preview");

	//insert the formfield in page (in span).
	foo.appendChild(formfield);

}
</SCRIPT>
</HEAD>
<BODY>
<FORM>
<H2>Dynamically add formfield in form.</H2>
Select the formfield and hit Add to add it in form.
<BR/>
<SELECT name="formfield">
	<OPTION value="button">Button</OPTION>
	<OPTION value="text">Textbox</OPTION>
	<OPTION value="radio">Radio</OPTION>
</SELECT>

<INPUT type="button" value="Add" onclick="add(document.forms[0].formfield.value)"/>

<span id="preview"> </span>

</FORM>
</BODY>
</HTML>

Full Source code : Dynamic Input Form

Adding input elements dynamically to form

<html>
<head>
<title>Add Remove Input Fields Dynamically using jQuery</title>
    <script type='text/javascript'>
        function addProducts(){
            var number = document.getElementById("product").value;
            var company_dtl = document.getElementById("company_dtl");
            while (company_dtl.hasChildNodes()) {
                company_dtl.removeChild(company_dtl.lastChild);
            }
            for (i=0;i<number;i++){

                company_dtl.appendChild(document.createTextNode("Product " + (i+1)));
                var input = document.createElement("input");
                input.type = "text";
                input.name = "product" + i;
                company_dtl.appendChild(input);
                company_dtl.appendChild(document.createElement("br"));
            }
        }
    </script>
</head>
<body>
    <input type="text" id="product" name="product" value="">Number of products: (max. 10)<br />
    <a href="#" id="filldetails" onclick="addProducts()">Fill Details</a>
    <div id="company_dtl"/>
</body>
</html>

Angular 6 CRUD Operations Application Tutorials

Read :

Summary

You can also read about AngularJS, ASP.NET, VueJs, PHP.

I hope you get an idea about JavaScript Dynamic Input Form Example.
I would like to have feedback on my Pakainfo.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.

JQuery QR Code Scanner reader using camera Example 0

JQuery QR Code Scanner reader using camera Example

Today, We want to share with you JQuery QR Code Scanner reader using camera Example.In this post we will show you Read BarCode or QR Code using jQuery WebCodeCam , hear for JQuery HTML5 QR Code Scanner using Instascan JS Example we will give you demo and example for implement.In this post, we will learn about jQuery Plugin For BarCode and QR Code Reader with an example.

JQuery QR Code Scanner reader using camera Example

There are the Following The simple About JQuery QR Code Scanner reader using camera Example Full Information With Example and source code.

As I will cover this Post with live Working example to develop jQuery and HTML5 based QR-code reader, so the javascript – Barcode scanner for html5 and jquery application for this example is following below.

JQuery HTML5 QR Code Scanner Example



	<title>jquery - Read qrcode from a web page with camera - pakainfo.com</title>
	
	


  
    <h1>jQuery Plugin For BarCode and QR Code Reader Example - pakainfo.com</h1>
    
    <video id="data_content_display"></video>
	
	<a href="https://pakainfo.com/" target="_blank" title="pakainfo">Free Download Example - Pakainfo.com</a>
	
    
      let get_scanner = new Instascan.Scanner({ video: document.getElementById('data_content_display') });
      get_scanner.addListener('scan', function (livemycameras) {
        alert(livemycameras);
      });
      Instascan.Camera.getCameras().then(function (livemycameras) {
        if (livemycameras.length > 0) {
          get_scanner.start(livemycameras[0]);
        } else {
          console.error('Sorry, No Any One cameras found.');
        }
      }).catch(function (e) {
        console.error(e);
      });
    
   


Read qrcode from a web page with camera

We can simple all the data read QR Codes readers using instascan.

Sample code to read QR Code.


  
    <title>pakainfo.com - QR Code Reader using Instascan</title>
    
  
  
	<a href="https://pakainfo.com/" target="_blank" title="pakainfo">Free Download Example - Pakainfo.com</a>
    <video id="Data_preview"></video>
    
      let scanner = new Instascan.Scanner({ video: document.getElementById('Data_preview') });
      scanner.addListener('scan', function (qr_code) {
        console.log(qr_code);
      });
      Instascan.Camera.getCameras().then(function (cameras) {
        if (cameras.length > 0) {
          scanner.start(cameras[0]);
        } else {
          console.error('Sorry, No cameras found.');
        }
      }).catch(function (e) {
        console.error(e);
      });
    
  

Angular 6 CRUD Operations Application Tutorials

Read :

Related Search: jquery barcode scanner example, jquery webcam qr code reader, jquery instascan example, qr code scanner jquery mobile, jquery barcode scanner camera, javascript barcode scanner example, jquery qr code reader, barcode scanner javascript html5,javascript qr code reader mobile, jquery qr code reader, javascript qr code scanner, php qr code reader camera, qr code decoder javascript, instascan example, html5 qr code reader iphone, php qr code reader webcam

Summary

You can also read about AngularJS, ASP.NET, VueJs, PHP.

I hope you get an idea about JQuery QR Code Scanner reader using camera Example.
I would like to have feedback on my Pakainfo.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.

Login and Signup System using PHP MySQLi 0

Login and Signup System using PHP MySQLi

Today, We want to share with you Login and Signup System using PHP MySQLi.
In this post we will show you Login and Signup System using PHP MySQLi, hear for Simple User Registration & Login Script in PHP and MySQLi we will give you demo and example for implement.
In this post, we will learn about Login and Registration Script in PHP & Mysqli with an example.

Database Design

First of all to design to create a simple databse.here in this example,user_master is a table name and “live_user_id” is a AUTO_INCREMENT key genrated means uniq key.

CREATE TABLE IF NOT EXISTS `user_master` (
  `live_user_id` int(11) NOT NULL AUTO_INCREMENT,
  `live_user_name` varchar(60) NOT NULL,
  `live_user_email` varchar(60) NOT NULL,
  `live_user_pass` varchar(255) NOT NULL,
  PRIMARY KEY (`live_user_id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

database_config.php

here database connetion file all the include setting to database connect file.

connect_errno) {
         die("ERROR : -> ".$Db_connect->connect_error);
     }
?>

register.php

real_escape_string($l_username);
 $live_user_email = $Db_connect->real_escape_string($live_user_email);
 $l_username = $Db_connect->real_escape_string($l_username);
 
 $hashed_live_user_pass = live_user_pass_hash($l_username, live_user_pass_DEFAULT); // this function works only in PHP current version check 5.5 or latest version
 
 $check_live_user_email = $Db_connect->query("SELECT live_user_email FROM user_master WHERE live_user_email='$live_user_email'");
 $count=$check_live_user_email->num_rows;
 
 if ($count==0) {
  
  $query = "INSERT INTO user_master(live_user_name,live_user_email,live_user_pass) VALUES('$l_username','$live_user_email','$hashed_live_user_pass')";

  if ($Db_connect->query($query)) {
   $message_result = "<div class='alert alert-success'>
      <span class='glyphicon glyphicon-info-sign'></span>   successfully registered !
     </div>";
  }else {
   $message_result = "<div class='alert alert-danger'>
      <span class='glyphicon glyphicon-info-sign'></span>   error while registering !
     </div>";
  }
  
 } else {
  
  
  $message_result = "<div class='alert alert-danger'>
     <span class='glyphicon glyphicon-info-sign'></span>   sorry live_user_email already taken !
    </div>";
   
 }
 
 $Db_connect->close();
}
?>



<title>Simple Login and Signup System using PHP and MySQLi  | Login & Registration System</title>

 





<div class="signin-form">

 <div class="container">
     
        
       <form class="form-signin" method="post" id="register-form">
      
        <h2 class="form-signin-heading">Sign Up</h2><hr />
        
        
          
        <div class="form-group">
        
        </div>
        
        <div class="form-group">
        
        <span id="check-e"></span>
        </div>
        
        <div class="form-group">
        
        </div>
        
      <hr />
        
        <div class="form-group">
            <button type="submit" class="btn btn-default" name="form-signup">
      <span class="glyphicon glyphicon-log-in"></span>   Create Account
   </button> 
            <a href="index.php" class="btn btn-default" style="float:right">Log In Here</a>
        </div> 
      
      </form>

    </div>
    
</div>



index.php

real_escape_string($live_user_email);
 $live_user_pass = $Db_connect->real_escape_string($live_user_pass);
 
 $query = $Db_connect->query("SELECT live_user_id, live_user_email, live_user_pass FROM user_master WHERE live_user_email='$live_user_email'");
 $row=$query->fetch_array();
 
 $count = $query->num_rows; 
 
 if (live_user_pass_verify($live_user_pass, $row['live_user_pass']) && $count==1) {
  $_SESSION['live_user_session'] = $row['live_user_id'];
  header("Location: dashboard.php");
 } else {
  $message_result = "<div>
     Invalid live_user_name or live_user_pass !
    </div>";
 }
 $Db_connect->close();
}
?>




<title>live 24 u - Login & Registration System</title>

 




<div class="signin-form">
 <div class="container">
       <form class="form-signin" method="post" id="login-form">
      
        <h2 class="form-signin-heading">Sign In.</h2><hr />
        
        
        <div class="form-group">
        
        <span id="check-e"></span>
        </div>
        
        <div class="form-group">
        
        </div>
       
      <hr />
     
        <div class="form-group">
            <button type="submit" class="btn btn-default" name="btn-login" id="btn-login">
      <span class="glyphicon glyphicon-log-in"></span>   Sign In
   </button> 
            <a href="register.php" class="btn btn-default" style="float:right">Sign UP Here</a>
          
        </div>  
      </form>

    </div>
    
</div>



dashboard.php

query("SELECT * FROM user_master WHERE live_user_id=".$_SESSION['live_user_session']);
$userRow=$query->fetch_array();
$Db_connect->close();

?>



<title>Welcome - </title>

 
 





<nav class="navbar navbar-default navbar-fixed-top">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="http://www.Pakainfo.com">live 24 u</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
          <ul class="nav navbar-nav">
            <li class="active"><a href="http://www.Pakainfo.com/2015/03/simple-login-and-signup-system-with-php.html">Back to Article</a></li>
            <li><a href="http://www.Pakainfo.com/search/label/jQuery">jQuery</a></li>
            <li><a href="http://www.Pakainfo.com/search/label/PHP">PHP</a></li>
          </ul>
          <ul class="nav navbar-nav navbar-right">
            <li><a href="#"></a></li>
            <li><a href="logout.php?logout"><span></span>Logout</a></li>
          </ul>
        </div>
      </div>
    </nav>

<div class="container">
 <a href="http://www.Pakainfo.com/">live 24 u - Programming Blog</a><br /><br />
    <p>Tutorials on PHP,Angularjs, MySQL,Vuejs, Ajax, jQuery, Web Design or web developemnt and more...</p>
</div>



logout.php

<?php
session_start();

if (!isset($_SESSION['live_user_session'])) {
 header("Location: index.php");
} else if (isset($_SESSION['live_user_session'])!="") {
 header("Location: dashboard.php");
}

if (isset($_GET['logout'])) {
 session_destroy();
 unset($_SESSION['live_user_session']);
 header("Location: index.php");
}

jQuery parseInt Convert String to Integer Number 0

jQuery parseInt Convert String to Integer Number

Today, We want to share with you jQuery parseInt Convert String to Integer Number.In this post we will show you jQuery convert number to string, hear for jquery convert string to double we will give you demo and example for implement.In this post, we will learn about javascript get number from string with an example.

jQuery parseInt Convert String to Integer Number

There are the Following The simple About jQuery parseInt Convert String to Integer Number Full Information With Example and source code.

As I will cover this Post with live Working example to develop jquery convert string to decimal, so the jquery convert string to float for this example is following below.

jQuery parseInt() – Convert String to Integer Number

syntax of parseInt() function

parseInt(string, radix)

jQuery – Convert string to integer

var dataInput = '921795';
var numValue = parseInt(dataInput);

Example 2: Convert String to Integer Number

var dataInput = '92 17 95';
var numValue = parseInt(dataInput);

JavaScript parseInt() Function

<!DOCTYPE html>
<html>
<body>
<p>Click the simple HTML button to parse different strings.</p>

<button onclick="myFunctionparseInt()">Click it</button>

<p id="examples"></p>

<script>
function myFunctionparseInt() {
  var a = parseInt("20") + "<hr>";
  var b = parseInt("20.00") + "<hr>";
  var c = parseInt("20.33") + "<hr>";
  var d = parseInt("34 45 66") + "<hr>";
  var e = parseInt("   60   ") + "<hr>";
  var f = parseInt("40 years") + "<hr>";
  var g = parseInt("He was 40") + "<hr>";

  var h = parseInt("20", 10)+ "<hr>";
  var i = parseInt("010")+ "<hr>";
  var j = parseInt("10", 8)+ "<hr>";
  var k = parseInt("0x10")+ "<hr>";
  var l = parseInt("10", 16)+ "<hr>";

  var n = a + b + c + d + e + f + g + "<hr>" + h + i + j + k +l;
  document.getElementById("examples").innerHTML = n;
}
</script>

</body>
</html>

Angular 6 CRUD Operations Application Tutorials

Read :

Summary

You can also read about AngularJS, ASP.NET, VueJs, PHP.

I hope you get an idea about jQuery parseInt Convert String to Integer Number.
I would like to have feedback on my Pakainfo.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.

PHP Auto post Blogger Scripts Example 0

PHP Auto post Blogger Scripts Example

Today, We want to share with you PHP Auto post Blogger Scripts Example.In this post we will show you PHP Simple Auto post Blogger Scripts Example, hear for Auto post into Blogspot using php Source code? we will give you demo and example for implement.In this post, we will learn about PHP Automatically Auto post Content into Blogspot with an example.

PHP Auto post Blogger Scripts Example

There are the Following The simple About PHP Auto post Blogger Scripts Example Full Information With Example and source code.

As I will cover this Post with live Working example to develop wordpress to blogger auto post, so the Auto Posts on Blogspot Automatically for this example is following below.

Auto Posts on Blogspot Automatically using PHP

<?php session_start();
    $email = "[email protected]";
    $pass = "Enteryourreallypassword"; //[email protected][email protected]#$%^
    $blogID= urlencode("blogger_id"); // like 6306924319904227886

    // Do any Not changes Modify Below source Code
    if(!isset($_SESSION['sessionToken'])) {

    $live_curl = curl_init("https://www.google.com/accounts/ClientLogin?Email=$email&Passwd=$pass&service=blogger&accountType=GOOGLE");
    curl_setopt($live_curl, CURLOPT_POST,1);
    curl_setopt($live_curl, CURLOPT_FOLLOWLOCATION ,1);
    curl_setopt($live_curl, CURLOPT_HEADER,0);
    curl_setopt($live_curl, CURLOPT_RETURNTRANSFER ,1);
    $data_result = curl_exec($live_curl);
    $resultArray = curl_getinfo($live_curl);
    curl_close($live_curl);
    $my_arr = explode("=",$data_result);
    $token = $my_arr[3];
    $_SESSION['sessionToken'] = $token;
    }

    $entry = "

    <title>Auto Post Blogger With PHP Script - Pakainfo.com</title>

    

    Auto Post On Blogspot Using PHP script Example with Step By Step.

    

    ";

    $len = strlen($entry);

    $data_headers = array("Content-type: application/atom+xml","Content-Length: {$len}","Authorization: GoogleLogin auth={$_SESSION['sessionToken']}","$entry");

    $live_curl = curl_init();
    curl_setopt($live_curl, CURLOPT_URL, "https://www.blogger.com/feeds/$blogID/posts/default");
    curl_setopt($live_curl, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($live_curl, CURLOPT_TIMEOUT, 4);
    curl_setopt($live_curl, CURLOPT_HTTPHEADER, $data_headers);
    curl_setopt($live_curl, CURLOPT_FOLLOWLOCATION, 1);
    curl_setopt($live_curl, CURLOPT_UNRESTRICTED_AUTH, 1);
    curl_setopt($live_curl, CURLOPT_POST, true);
    $result = curl_exec($live_curl);
    $ERROR_CODE = curl_getinfo($live_curl);
    curl_close($live_curl);

    echo '<pre>';
    print_r($data_headers);
    var_dump($result);
    print_r($ERROR_CODE);
    exit;

    ?>

Angular 6 CRUD Operations Application Tutorials

Read :

Summary

You can also read about AngularJS, ASP.NET, VueJs, PHP.

I hope you get an idea about PHP Auto post Blogger Scripts Example.
I would like to have feedback on my Pakainfo.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.

Data Tables State save local storage in jQuery 0

Data Tables State save local storage in jQuery

Today, We want to share with you Data Tables State save local storage in jQuery.In this post we will show you Datatables stateSave option: “remember” search and filters, hear for How To Save Custom Filter State with JQuery Data Tables we will give you demo and example for implement.In this post, we will learn about JQuery Data Tables server side processing with state saving with an example.

Data Tables State save local storage in jQuery

There are the Following The simple About Data Tables State save local storage in jQuery Full Information With Example and source code.

As I will cover this Post with live Working example to develop stateSave option in jQuery DataTables, so the datatables state save server side for this example is following below.

JQuery Datatables state save local storage

Syntex

$('#live_product_tbl').dataTable( {
    "stateSave": true
} );

State saving

$(document).ready(function() {
    $('#live_product_tbl').DataTable( {
        ajax:           "../data/documents.txt",
        deferRender:    true,
        scrollY:        200,
        scrollCollapse: true,
        scroller:       true,
        stateSave:      true
    } );
} );

Example : stateSave option in jQuery DataTables,

  $('#live_product_tbl').dataTable({
        "iDisplayLength": 100
    });

And then, the only changes thing we need to include is this:

$('#live_product_tbl').dataTable({
        "iDisplayLength": 100,
        stateSave: true
    });

And as soon as We simple navigate back to the View page (with any events click “Back” button or even reload the page), your last search filters, page and sorting will stay current active.

Angular 6 CRUD Operations Application Tutorials

Read :

Summary

You can also read about AngularJS, ASP.NET, VueJs, PHP.

I hope you get an idea about Data Tables State save local storage in jQuery.
I would like to have feedback on my Pakainfo.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.

Get Current login Auth user details using Laravel 5.7 0

Get Current login Auth user details using Laravel 5.7

Today, We want to share with you Get Current login Auth user details using Laravel 5.7.In this post we will show you laravel 5.6 get current user, hear for Laravel 5.5 get current login user details using Auth we will give you demo and example for implement.In this post, we will learn about PHP Laravel 5.7 get current user details with an example.

Get Current login Auth user details using Laravel 5.7

There are the Following The simple About Get Current login Auth user details using Laravel 5.7 Full Information With Example and source code.

As I will cover this Post with live Working example to develop laravel 5.7 get current user, so the some laravel auth :: user () returning null for this example is following below.

class ‘app\http\controllers\auth’ not found
Class ‘App\Http\Controllers\Auth’ not found -FatalErrorException in HomeController.php

in the top of the controller.

use Auth; 

Example 1: Using Laravel Helper:

Get Logged User Data using helper

$get_user_dtl = auth()->user();
dd($get_user_dtl->id);
dd($get_user_dtl->name);
dd($get_user_dtl->email);

Example 2: Using Facade:

you can get all the login user information using Laravel Auth facade, it will also return object of current users data.

$get_user_dtl = Auth::user();
dd($get_user_dtl->id);
dd($get_user_dtl->name);
dd($get_user_dtl->email);

Using the Auth to get current user data

use Illuminate\Support\Facades\Auth;

$id = \Auth::user()->id;
$id = Auth::id();

$user = \Auth::user();
$user = Auth::user();

Angular 6 CRUD Operations Application Tutorials

Read :

Summary

You can also read about AngularJS, ASP.NET, VueJs, PHP.

I hope you get an idea about Get Current login Auth user details using Laravel 5.7.
I would like to have feedback on my Pakainfo.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.

How To Create Contact Form With PHPMailer To Send Mails 0

How To Create Contact Form With PHPMailer To Send Mails

How To Create Contact Form With PHPMailer To Send Mails

In this Post We Will Explain About is How To Create Contact Form With PHPMailer To Send Mails With Example and Demo.Welcome on Pakainfo.com – Examples, The best For Learn web development Tutorials,Demo with Example! Hi Dear Friends here u can know to How to send email from contact form using PHPExample

In this post we will show you Best way to implement Creating a Simple Contact Form with PHP, hear for Contact form with PHP Mailer – PHPwith Download .we will give you demo,Source Code and examples for implement Step By Step Good Luck!.

Introduction

Every web-application or websites have Their Simple own contact page to get feedback and messages from visitor, As well as it will need site owners to improve Their Simple web-application or websites performance And Have idea about user experience. Here I am going to develop a simple contact form using HTML and send mails to Super Admins contacts with need of PHPMailer (A PHP Class).

And Then we need to Make a simple contact form with need of HTML forms and design it with some CSS work based on wer needs.You might save this file as contact.php

HTML Form

<?php 
if(isset($_GET['response']) && $_GET['response'] == 'success') {
      echo '<div class="success_msg"> Thank we for contacting us. We will get back to we soon. </div> ';
} ?>

     .success_msg {
          background-color: #fed;
          color: green;
          border: 1px solid green; 
     }

<form name="live-contact-form" method="post" action="live-contact-process.php">
<table width="450px">
</tr>
<tr>
<td valign="center">
<label for="fname">First Name *</label>
</td>
<td valign="center">

</td>
</tr>

<tr>
<td>
<label for="lname">Last Name *</label>
</td>
<td valign="center">

</td>
</tr>
<tr>
<td valign="center">
<label for="email">Email Address *</label>
</td>
<td valign="center">

</td>

</tr>
<tr>
<td valign="center">
<label for="mobile">Mobile Number</label>
</td>
<td valign="center">

</td>
</tr>
<tr>
<td valign="center">
<label for="subject">Subject</label>
</td>
<td valign="center">

</td>
</tr>
<tr>
<td valign="center">
<label for="message">Message *</label>
</td>
<td valign="center">
<textarea name="message" cols="25" rows="6"></textarea>
</td>

</tr>
<tr>
<td colspan="2" style="text-align:center">
<!-- We are  simple grateful to we for keeping this link in place. thank we. -->
 ( <a href="https://pakainfo.com">Get Help from live24ucodes tut.</a> )
</td>
</tr>
</table>
</form>

Than CSS style it with the need of CSS(Cascading Style Sheet).as well as When User simple click on Submit button, and then it will send the data’s to to `live-contact-process.php`.

PHP

Here we are going to simple handle the user step by step entered data’s and simple send it to Super Admin email address at the same time we send a simple acknowledge to the and smple particular user.

<?php
require_once("PHPMailerAutoload.php"); //here this will simple include smtp data and pop files.

if(isset($_POST['email'])) {

   $to_email = "[email protected]";

   function mydedc($error) {// wer error code can go here
        echo "We're sorry, here but there's errors data simples found with theas simple  well as form we submitted.<hr /><hr />";
        echo $error."<hr /><hr />";
        echo "here Please go back and simple fix these errors.<hr /><hr />";
        die();
   }

   //Devlopend by livu.com e validation expected data exists
   if(!isset($_POST['fname']) ||!isset($_POST['lname']) ||!isset($_POST['email']) ||!isset($_POST['mobile']) ||!isset($_POST['subject']) || !isset($_POST['message'])) {
       mydedc('We are sorry, but there simple appears to be a some problem with the form we submitted.'); 
   }

   $fname = $_POST['fname']; //Data required
   $lname = $_POST['lname']; //Data required
   $form_email = $_POST['email']; //Data required
   $mobile = $_POST['mobile']; //Data not required
   $subject = $_POST['subject']; //Data required
   $message = $_POST['message']; //Data required

   $msg_err = "";
   $email_exp = '/^[A-Za-z0-9._%-][email protected][A-Za-z0-9.-]+\.[A-Za-z]{2,4}$/';
   if(!preg_match($email_exp,$form_email)) {
       $msg_err .= 'The Email Address we entered does not appear to be valid.<hr />';
   }
   $msg_string_exp = "/^[A-Za-z .'-]+$/";
   if(!preg_match($msg_string_exp,$fname)) {
      $msg_err .= 'The USER First Name we entered does not appear to be valid.<hr />';
   }
   if(!preg_match($msg_string_exp,$lname)) {
       $msg_err .= 'The USER Last Name we entered does not appear to be valid.<hr />';
   }
   if(!preg_match($msg_string_exp,$subject)) {
      $msg_err .= 'The Last Name we entered does not simple appear to be valid.<hr />';
   }
   if(strlen($message) < 2) {
       $msg_err .= 'The Live Message we entered do not simple appear to be valid.<hr />';
   }
   if(strlen($msg_err) > 0) {
       mydedc($msg_err);
   }
   $msgbody_email = "\n\n";

   $msgbody_email .= "First Name: ".clean_string($fname)."\n";
   $msgbody_email .= "Last Name: ".clean_string($lname)."\n";
   $msgbody_email .= "Email: ".clean_string($form_email)."\n";
   $msgbody_email .= "Mobile: ".clean_string($mobile)."\n";
   $msgbody_email .= "Subject: ".clean_string($subject)."\n";
   $msgbody_email .= "Message: ".clean_string($message)."\n";

   $mail = new PHPMailer();
   $mail->isSendmail();
   $mail->setFrom($form_email, $fname.$lname);
   $mail->addAddress($to_email, 'live24u Varadha);
   $mail->Subject = $subject;
   $mail->msgHTML(file_get_contents('path/to/file/attachment-file.extension'), dirname(__FILE__));

   if (!$mail->send()) { //send the message, check for errors
      echo "Mailer Error: " . mydedc($error);
   } else {
       header('Location: contact.php?response=success'); 
   }
?>

<!--Devlopend by livu.com place wer own success html simple below -->


PHPMailer Class :

It have some extended latest features, just take simple look at here to use it effective way With Like as a CC, BCC as well as Reply-To . This is simple how we can some design a contact form with using PHP phpmailer to send emails. If We have any some queries and some doubts drop wer Message here.

Example

I hope you have Got What is php – how to send on contact form using phpmailer And how it works.I would Like to have FeadBack From My Blog(Pakainfo.com) readers.Your Valuable FeadBack,Any Question,or any Comments abaout This Article(Pakainfo.com) Are Most Always Welcome.