Wordpress - get category name as select option value

     

I've got a select dropdown which outputs all the available categories of the Wordpress site. Now I've been trying to also set the value of each option to the category name. This is my code: