Is it possible to update a table when the user clicks the submit button without moving away from that page or is this something that only a Javascript can do?
To get a better idea of what I mean, paste the code below into Notepad, save it as a .htm file and open it in your browser. What I would like to do is to update the table with the info pulled from the user's selection in the combo box.
If this is somehow possible with PHP I would rather use that as that's what I'm currently trying to learn.
<p align="center"><strong><font size="+1">Please select your logon name
from the drop-down box below and click the Search button:</font></strong></p>
<form action="" method="post" name="form1">
<p align="center"><font size="+1">
<select size="1" name="username">
<option value=""></option>
<option value="name1">Name1</option>
<option value="name2">Name2</option>
<option value="name3">Name3</option>
<option value="name4">Name4</option>
<option value="name5">Name5</option>
<option value="name6">Name6</option>
</select>
</font> <input value="Search" type="submit" name="submit2"> </p>
<center>
<table width="13%">
<tbody>
<tr>
<td><strong>Name:</strong></td>
<td>variable</td>
</tr>
<tr>
<td><strong>Telephone no:</strong></td>
<td>variable</td>
</tr>
<tr>
<td><strong>Room no:</strong></td>
<td>variable</td>
</tr>
<tr>
<td><strong>Site:</strong></td>
<td>variable</td>
</tr>
</tbody>
</table>
</center>
</form>