posted 20 years ago
Hi,
i am designing an interface in HTML/JavaScript in which the user is allowed to choose a file from a set of specified files. currently i provide the user a set of text files and jpg images and using the code shown below the user is allowed to choose one text file/jpeg image.
<form name="theForm">
<select name="sel" onchange="loadFile();">
<option> Choose the map u prefer
<option value="C:\My Documents\us.jpg" height=50 width=20> Kerala
</select>
</form>
now i want to allow the user to select data ie either images like maps or text from a mySQL database that is available in the place i am working. how should the above code be modified to allow the user to select data from a database?
thanks in advance.