Search
 
SCRIPT & CODE EXAMPLE
 

PHP

set cookie on button click JavaScript


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 :: remove last comma php 
Php :: php base convert 
Php :: remove last 3 character from string php 
Php :: php recortar string 
Php :: PHP: How to remove specific element from an array? 
Php :: session_regenerate_id 
Php :: laravel get namespace 
Php :: wordpress get wp roles 
Php :: checks if file is empty in php 
Php :: eloquent insert into select 
Php :: encryption and decryption in php example 
Php :: carbon this month first day 
Php :: php get duplicate keys in array without using inbuilt function 
Php :: php concatenation with a space 
Php :: simple pagination in php 
Php :: laravel new line in session flash message 
Php :: in date function + 1 month and - 1 day in php 
Php :: laravel unique id 
Php :: this php 
Php :: auto reload for laravel 
Php :: php header content type json 
Php :: yii2 sendemail extension 
Php :: best custom email validation rule for laravel 
Php :: wp large medium large 
Php :: kill php-fpm inside docker 
Php :: php audio embed 
Php :: Trying to access variable outside laravel collection 
Php :: yii1 findall as array listData 
Php :: check if config exist laravel 
Php :: reindex after post api magento 2 
ADD CONTENT
Topic
Content
Source link
Name
8+3 =