i need some help going line by line in a text file then making those lines the values for a drop down box, here is what i have got so far but i don't think this is close to correct. Any help would be great Thanks
<?php
$filename = 'data/names.txt';
$nameContents = file($filename);
?>
<form>
<select id="value">
<option selected value="base">Please Select</option>
<?php foreach($nameContents as $line){ ?> <option"><?php $line ?></option> ?> <?php } ?>
</select>
</div>