提交后下拉列表生成器重置选项

Im working on some code that requires lots of dropdown lists and I decided to make an function that generates dropdown lists to cut down the amount of code used for the dropdown lists.

But the problem im getting is that the values of the dropdown lists reset after every 'submit'..

function generateDrop($name, $optionsValue, $optionDesc, $header)
{
    echo' 
        <p>'.$header.' 
        <select name="'.$name.'" type="text" >
            <option value="" disabled>Choose here</option>
            ';
    for ($i = 0; $i < sizeof($optionsValue); $i++)
    {
        echo'<option value ="'.$optionsValue[$i].'">';
        if(isset($optionDesc[$i]))
        {
            echo $optionDesc[$i];
        }
        else
        {
            echo $optionsValue[$i];
        }
        echo '</option>';
    }
    echo '</select> </p>';
}