The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dropdown box auto populates other input fields - Help
#5
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.
  Reply


Messages In This Thread
Dropdown box auto populates other input fields - Help - by muhammedc - 04-29-2017, 03:13 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)