I want to open file1.csv values in a dropdown box.
<?php
$file_handle = fopen("file1.csv", "r");
while (!feof($file_handle) ) {
$line_of_text = fgetcsv($file_handle, 1024);
//print $line_of_text[0] ." ". $line_of_text[1]." ". $line_of_text[2] . "<BR>";
}
# I want to display the result into a dropdown box below.
?>
<select name="list" >
<option value="<?php print $line_of_text[1] ?>"> <?php print $line_of_text[1] ?> </option></select>
<?php
fclose($file_handle);
?>