right now my php session loads when I load the page. The code looks like this:
<?php
session_start();
$_SESSION['started'] = true;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>First page</title>
</head>
<body>
<a href="WHEN CLICK ON THIS LINK I WANT THE PHP SESSION TO START">LINK</a>
</body>
</html>
What I want to do is instead of the PHP session loads when the page loads I want it to load when the user clicks on the link.
1 Answer