Tuesday, April 5, 2011

connection textfield and html table with database

dear all..i have a textfield

<tr>
<td>
<td><input type="text" id="model_name"></td>
</td>
</tr>

and a cell

<tr>
<td><div id="value">//i want data show here after fill textfield</div>
</td>
</tr>

beside that, i've a table "settingdata" in database it consist of 2 field:itemdata and remark.. itemdata's value are "UD" and remark's value are "FM=87.5-108.0MHZ"...

what must i do if i want after type model name "car01UD" at textfield inside

<div id="value"></div>

can show "FM=87.5-108.0mhz"...

From stackoverflow
  • if you want "0103" + value of itemdata then do following

    <input type="text" id="mod" value="0103<?PHP echo $itemdata ?>">
    
    klox : i've been change 0103 into car01UD..that's a data for input inside textfield...i need at 2 character can control the cell to take FM=... from database
  • Looks like you are trying to do basic Ajax functionality. Consider reading some Ajax tutorials to get an idea how to do this.

0 comments:

Post a Comment