posted 20 years ago
Hi,
using HTML/JS i have created a graphical interface as follows:
in page 1, the user has a set of icons displayed on the screen.
when the user clicks on the first icon, he can choose a map using the
<select> and <option> tags. in the code, as soon as the user selects a
map, that is displayed on the screen.
<script language="javascript">
function loadFile() {
var fileName = document.theForm.sel.value;
if (fileName != "") {
location.href = fileName;
}
}
</script>
<body>
Please Choose the map u prefer and after the map has been displayed,click
on the "Back" button
<form name="theForm">
<select name="sel" onchange="loadFile();">
<option> Choose the map u prefer
<option value="C:\My Documents\usa.jpg" height=50 width=20>US
</select>
</form>
now the user clicks the back button and goes back to the home page. then he can click on the second icon and using similar code, he is allowed to select text files now instead of maps.
now the selections made by the user are sent to a server that gets
these inputs and does necessary calculations.
my question is that as soon as the user selects a map (or a text
file), is it possible to store the user selections in some way (as a
variable or a XML file... etc) so that a server can interpret these data
and do necessary processing.
thanks in advance.