04-29-2017, 03:13 PM
id = int(11) auto_increment
company = varchar(64)
firstname = varchar(64)
lastname = varchar(64)
So the dropdown box has the following code:
<select id="cc" name="cc">
<?php
foreach ($permOps1 as $permOp1){
echo "<option value='$permOp1->id'>$permOp1->company </option>";
}
?>
</select>
Now there are two input text fields as follows:
<div class="col-xs-2">
<input type="text" class="form-control" id="lname" name="lname">
</div>
<div class="col-xs-2">
<input type="text" class="form-control" id="fname" name="fname">
</div>
So when the company is selected from the dropdown box, the the above two input boxes must auto populate with the correct data from the db.
company = varchar(64)
firstname = varchar(64)
lastname = varchar(64)
So the dropdown box has the following code:
<select id="cc" name="cc">
<?php
foreach ($permOps1 as $permOp1){
echo "<option value='$permOp1->id'>$permOp1->company </option>";
}
?>
</select>
Now there are two input text fields as follows:
<div class="col-xs-2">
<input type="text" class="form-control" id="lname" name="lname">
</div>
<div class="col-xs-2">
<input type="text" class="form-control" id="fname" name="fname">
</div>
So when the company is selected from the dropdown box, the the above two input boxes must auto populate with the correct data from the db.