I am trying to display two seperate items on the same line in a HTML form using a PHP loop to auto populate it. This is the PHP/HTML form:
<select class="form-control" name="list" title="pick a type">
<?php if(count($postOpts)) { ?>
<?php foreach($postOpts as $row) { ?>
<option value="<?= $row["name"] ?>"><?= $row["price"] ?></option>
<?php } ?>
<?php } else { ?>
<option value="<?= $post->getDefaultPrice() ?>"><?= "Default Shipping Option - $".$post->getDefaultPrice() ?></option>
<?php } ?>
</select>
I can have either the price or the name displaying, but not both on the same line.
Can anyone help?