Jump to content
php.lv forumi

Recommended Posts

Posted

Sveiki.

 

Problema ir sekojosa...

 

Ir divi selecti (htmla), kuri mainas atkariba no orta vertibas.

 

<select name="kautkas" onchange="form.submit()" >';

while($row = mysql_fetch_array($result)) {

echo "<br>";

 

echo' <option value ="'.$row["nr"].'">'.$row["nosaukums"].'</option><br>';

 

};

echo' </form>'

 

 

Bet pec submit izpildisanas 1. selecta ieraksts parlec uz pirmo vertibu, bet man gribetos lai vins paliktu tads ka es vinu izvelejos..

Posted (edited)

<option value='izveeleetaa_veertiiba' selected='selected'>bla bla bla</option>

Edited by Val
Posted

Ja, bet tad es varu tikai kadai 1 noteiktai vertibai so "selected='selected'" piesskirt, bet man vajag lai vina tiktu pieskirta tikai tai vertibai kuru es izvelesos, tas ir, vina varetu but dazadiem ierakstiem.

×
×
  • Create New...