Jump to content

<select> onChange


Nothadoth

Recommended Posts

[code]select name='tariffselect' size='6' onchange='this.options[this.selectedIndex].value;
this.selectedIndex=0;'>";

    mysql_connect('localhost','hidden','hidden');
mysql_select_db('noth_igbltduk');  
$querysystems= mysql_query('SELECT * FROM phone_tariffs ORDER BY tariff ASC');
while($tariff = mysql_fetch_array($querysystems)) {

print "<option name='".$tariff['tariff']."'>".$tariff['tariff']."</option>";

}
     
      print "</select>[/code]

how do i use ajax :S
Link to comment
https://forums.phpfreaks.com/topic/17893-onchange/#findComment-76517
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.