Building a TODO list in PHP

When a new item is added to a TODO list, ask the user if they want to
add it to the beginning or end of the list. Default to end if no input
is given.