Modify the code so that it provides a web form to collect thecookie values from the users. In other words, you will add two textboxes where users will enter the cookie name and the cookie value.You will also add a submit button, which lets users to send thecookie values to the server. The page should display the previouscookie values when it is loaded.
   $cookie_name = \"user\";
   $cookie_value = \"John Doe\";
   setcookie($cookie_name, $cookie_value, time() +(86400 * 30), \"/\"); // 86400 = 1 day
?>
if(!isset($_COOKIE[$cookie_name])) {
  echo \"Cookie named '\" . $cookie_name . \"' is notset!\";
} else {
  echo \"Cookie '\" . $cookie_name . \"' isset!
\";
  echo \"Value is: \" . $_COOKIE[$cookie_name];
}
?>
Note: You might have toreload the page to see the value of the cookie.