Click to See Complete Forum and Search --> : Dropdown menu & dynamic values


GurusGuru
02-19-2003, 11:41 PM
How can the number of records in a particular option be shown in a drop down menu. The values are obtained from a flat text file. Example www.batchmates.com. When one sees the year wise list, he gets to see how many users are registered for that particular year.

<option value="1919">1919(1)</option>
<option value="1947">1947(2)</option>
<option value="1951">1951(1)</option>
<option value="1961">1961(2)</option>
<option value="1963">1963(3)</option>
<option value="1964">1964(3)</option>

The values in brackets () are obtained from a .dat file.

AdamBrill
02-19-2003, 11:45 PM
You have to use some server-side language to read from text files. I use PHP, but you could probably use any of them.