Program: <?php session_start(); // Destroy Session Variable session_unset(); // Destroy Session session_d...
Read More
Showing posts with label WebPHP. Show all posts
Showing posts with label WebPHP. Show all posts
30 Program to Get Session Variables in PHP.
Program: <?php session_start(); $_SESSION["favcolor"] = "green"; $_SESSION["favanimal"]...
Read More
29 Program to start session in PHP
Program: <?php session_start(); $_SESSION["favcolor"] = "green"; $_SESSION["favanimal"]...
Read More
28 Program to delete cookies in PHP
Program: <?php setcookie("name",null,time()-3600); // Set the expiration time 1 hour ago echo "Cook...
Read More
27 Program to modify cookies in PHP
To modify cookie, just set(again) the cookie using the setcookie() function. Program: <?php $cookie_name = "Name"; ...
Read More
26 Program to create Cookies in PHP
Program: <?php $cookie_name = "Name"; $cookie_value = "Atharva"; setcookie($cookie_name,$cookie_v...
Read More
25 Program to demonstrate Server Role in PHP
Program: <html> <body> <?php if(date('G')<12) echo "Good Morning ".date...
Read More
24 Program to demonstrate Web Page Validation in PHP
Program: <?php if(isset($_POST['submit'])) { $username = $_POST['username']; $pass = $_POS...
Read More
Subscribe to:
Posts (Atom)