Search
 
SCRIPT & CODE EXAMPLE
 

PHP

set cookie on button click php or js


function SetCookie(c_name,value,expiredays)
	{
		var exdate=new Date()
		exdate.setDate(exdate.getDate()+expiredays)
		document.cookie=c_name+ "=" +escape(value)+
		((expiredays==null) ? "" : ";expires="+exdate.toGMTString())
	}

Comment

PREVIOUS NEXT
Code Example
Php :: set cookie on button click JavaScript 
Php :: create a module laravel 
Php :: laravel collection combine 
Php :: php docker offical apache 
Php :: file upload in laravel 
Php :: rendering json in laravel 
Php :: php compare dates 
Php :: epoch to date php 
Php :: laravel app service provider register 
Php :: execute php mysql securely 
Php :: where is in array laravel 
Php :: laravel error messages 
Php :: removing the last value of an array 
Php :: Laravel (8) - Routing to controller with optional parameters 
Php :: display php error 
Php :: how to print something in php 
Php :: How do I log properly a Laravel Job 
Php :: command to create middleware in laravel 
Php :: oops concepts in php 
Php :: compare two datetime php 
Php :: Clear any previous error php 
Php :: wordpress rest_no_route custom post type 
Php :: append single quote around variable in php string 
Php :: laravel cookie (flash meesage for time) 
Php :: create resource controller in admin folder laravel 
Php :: Schema::defaultStringLength(199); 
Php :: entrust laravel 
Php :: wp_query start from second post 
Php :: is search page wordpress dev 
Php :: php get woocommerce attribute from database 
ADD CONTENT
Topic
Content
Source link
Name
9+5 =