from
<div id="ValueFromDB">
<!--
Here you would put your mysql code to get the row from the database and dispaly it, you should check that the value from the form of the selected box is not empty so you don't get an error
-->
</div>
i think i should get the value( tat just been selected) out from that part, however, i not sure how to get that value out though.
Main Topics
Browse All Topics





by: justinbilligPosted on 2005-08-04 at 04:27:50ID: 14596926
Your going to have to submit a form to read the database, Something Like this
<html>
<body>
<form name="frmMain">
<!-- This if statement just says that if the first option is chosen ( the blank option ) don't submit the form
if you dont have a blank option take out the if statement -->
<select name="cmbMySelect" onchange="if( this.selectedIndex != 0 ) this.form.submit( );">
<!-- These options here are just for show, you would put your mysql generated options here -->
<option value=""></option>
<option value="abc">abc</option>
</select><br />
<div id="ValueFromDB">
<!--
Here you would put your mysql code to get the row from the database and dispaly it, you should check that the value from the form of the selected box is not empty so you don't get an error
-->
</div>
</form>
</body>
</html>