Ben bir işlevi yapmak oldukça zaman geçirdim ve son 15-20 dakika bu anlamaya çalışıyorum. Yardıma ihtiyacım var!
Ben veritabanından birden çok satır seçerek ve daha sonra bir süre döngü onları çalıştırıyorum.
Onlar bir açılır menü mevcuttur.
<form method="POST" action="adminprocess.php">
<fieldset>
<p>
<label class="left2">League:</label>
<select name="league" class="combo">
<?php
$q = $database->selectAllLeagues();
while($row=mysql_fetch_assoc($q))
{
$theid = $row['id'];
extract($row);
?>
<option value="<? echo $theid; ?>">
<? echo $format.'_'.$game.'_'.$name.'_Season '.$season;?>
</option>
<?
}
?>
</select>
</p>
<p>
<input type="hidden" name="replaceleague" />
<input type="hidden" name="format" value="<? echo $format; ?>" />
<input type="hidden" name="game" value="<? echo $game; ?>" />
<input type="hidden" name="name" value="<? echo $name; ?>" />
<input type="hidden" name="season" value="<? echo $season; ?>" />
<input type='submit' class="button" value='Select league' />
</p>
</fieldset>
</form>
$theid seems to be working fine dependning on which row i select on the dropdown menu. However, I cant get the values below in the hidden inputs to pass through the correct values from the row selected in the dropdown box.
Her zaman veritabanı ilk satırdan 4 değişkenleri geçmesine görünüyor.
So basically, I need it to select the right row and use that data. What am i doing wrong!!! Thanks for reading!