while ($row = mysql_fetch_array($result)) { $row_country = $row['country']; if ($row_country == $nationality) { $selected = "selected='selected'"; } else { $selected = ""; } echo '<option '.$selected.' value="'.$row_country.'">'.$row_country.'</option>'; } ?> </select></td> <td>Where you are from</td> </tr> <?= getCheckboxesForSupportedVersions("H"); ?> <tr> <td>Default Game</td> <td><?= getSelectboxForSupportedVersions('') ?></td> <td>The game you play online the most often</td> </tr> <!-- <tr> <td>PES 5 serial</td> <td><input class="width150" maxlength="24" type="hidden" name="serial5" id="serial5" value=""></td> <td></td> </tr> -->
echo "<option value=\"{$row_country}\" {$selected}>{$row_country}</option>"; } ?> </select></td> <td>Your nationality (only if different from location)</td> </tr> <tr> <td>Picture</td> <td><input size="10" type="File" name="picture"></td> <td>A picture of yourself (max. size: 500x500)</td> </tr> <?php echo getCheckboxesForSupportedVersions($versions); ?> <tr> <td>Default Game</td> <td><?php echo getSelectboxForAllVersions($defaultversion); ?> </td> <td>The game you play online the most often</td> </tr> <tr> <td>Email address*</td> <td><input class="width150" type="Text" name="mail1" value="<? echo $mail ?>"></td> <td><b>Must be valid!</b></td>