write a program that keeps an updatable note in a cookie. don't forget to strip html code from the note before saving it.
you can use this html code as a starting point...
<form method="post" action="note.php">
<textarea name="note" placeholder="kittens say meow.">***</textarea>
<input type="submit" value="update" />
</form>
remember, the content of a textarea goes between the textarea and /textarea tags where *** is. replace *** with your desired content string. don't forget " is a special character in php and needs to be escaped as \" inside variables.
write a program that keeps a running tally of how many times a user refreshes a page in a single session. it should show what date/time they last loaded the page.
each time it refreshes, it should display a random message. you can choose the messages.
write a program that allows users to add items to a shopping list stored in a cookie.
you can use this html code as a starting point...
<form method="post" action="list.php">
<input type="text" name="item" placeholder="3 large bananas" />
<input type="submit" value="+" />
</form>
remember, while session variables can be arrays, cookies are always strings. don't forget to add new lines between items.
you should display the whole list along with the ability to add a new item every time.
write a program that allows the user to submit a word then have another user guess letters until it has been solved, counting the number of guesses with and without matching letters and not allowing duplicate guesses.
this should resemble "hangman".
remember, you can pass get variables by just adding ?variable=value to the end of the page. you can use this html code as a starting point...
<form method="post" action="guess.php">
<input type="text" name="word" placeholder="specialized" />
<input type="submit" value="save new word" />
</form>