| Author |
javascript and database
|
Sri Sar
Ranch Hand
Joined: Mar 25, 2004
Posts: 44
|
|
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.
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15362
|
|
|
You need to use a server side language to pull the data from the database
|
 |
 |
|
|
subject: javascript and database
|
|
|