Working on postTask() in index.php