Simple Diary - Adding value to an array

Working example: http://uaf46365.ddns.uark.edu/paradigms/a6/wall.php
My code: http://pastebin.com/vRU5tY1g

As far as I can tell the array is not retaining its values.
Example:

What should happen:
I enter “apple”. Program echoes “apple”
I enter “road”. Program echoes “road
apple”
I hit clear. Program echoes nothing.

What happens:
I enter “apple”. Program echoes “apple”
I enter “road”. Program echoes “road”
I hit clear. Program echoes nothing.

Thanks for any help.

It looks like you:
Check for Session

try to push a new entry to a array that doesn’t exist,

And then never write anything into the session.

Sponsor our Newsletter | Privacy Policy | Terms of Service