I'm using $_GET to grab an id from the URL and then storing this in a variable called $taskid like so:
$taskid = $_GET['id'];
This works fine, however earlier in my code I have an UPDATE SQL statement that updates the task when the submit button is pressed, which looks like this:
$updatelist...