How to make php show the value of a cookie?-ThrowExceptions

Exception or error:

So, I was making cookies, and I wanted to take the input from a textbox in a variable, and then, that variable will be the value of a cookie.
When it was set, I wanted it to be shown, but it gave me errors.

$subject = $_POST['mt'];
$content = $_POST['topic'];
$password= $_POST['par'];
$mat = mat;
setrawcookie($mat, $content, time() + (60*60*24*7), "/"); //604800 = 1w
if(!isset($_COOKIE[$mat])) {
            echo "Refresh the page!";
        else {

How can I show it?

How to solve:

Leave a Reply

Your email address will not be published. Required fields are marked *