Hi, everyone. I've been attempting to write a very simple and short code. All I want to do is have some text on the page that says, "Click here to make a cookie." The 'Click here' part will be the link.
What I want is for the 'Click here' link after being clicked, to make a cookie in the browser. Can someone explain to me how this can be done? I was thinking about writing an if statement but I usually can do that with no problem using POST or GET, but there's nothing for me to identify the <a href=""> with. (Note: I'm fairly new to PHP.)
Code:
<a href="">Click here</a> to make a cookie.
This code is really all I got up to, ha.
Thanks!