<form class="row toolbar" method="post">

    <div class="col">
        <textarea class="form-control" type="text" name="query" rows="1"><?= isset($_POST['query']) ? $_POST['query'] : "" ?></textarea>
    </div>
    <div class="col-1">
        <button type="submit" class="btn btn-dark btn-block" name="submit">Submit</button>
    </div>

</form>