how to populate a list box with the file content dynamically?
i want to populate a html list box (select tag) with the content of file (i.e each line of the file should become a single option in the list box (select element)).
suppose i have a file say containing
there is a html form
when the form is loaded it should populate the list box (select element) with the contents of the file .
<title>List box Loading</title>
<form id="frm1" name="frm1" action="" method="GET">
<select id="lb" name="lb" size="5">
</select><br /><br />
<input type="button" id="btn1" name="btn1" value="OK" />