<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

<?php foreach($gpsinfo as $key => $val){ ?>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{$key}:</label>
        <div class="col-xs-12 col-sm-8">
            {$val}
        </div>
    </div>
<?php } ?>

</form>
