Hello!
Hub and location cannot be selected during registration. The browser reports :
Warning: Invalid argument supplied for foreach() in /usr/www/users/virtuajj/sachsenexpress/sxp-crew/lib/skins/ocean_blue/registration_mainform.php on line 39
Warning: Invalid argument supplied for foreach() in /usr/www/users/virtuajj/sachsenexpress/sxp-crew/lib/skins/ocean_blue/registration_mainform.php on line 49
Hello!
Hub and location cannot be selected during registration. The browser reports :
I can't find the error because I didn't change the original files.
Could someone please help. Thank you
Best regards
Andreas
<dt>Hub: *</dt>
<dd>
<select name="hub" id="hub">
<?php
foreach($hub_list as $hub) {
echo '<option value="'.$hub->icao.'">'.$hub->icao.' - ' . $hub->name .'</option>';
}
?>
</select>
</dd>
<dt>Location: *</dt>
<dd><select name="location">
<?php
foreach($country_list as $countryCode=>$countryName) {
if(Vars::POST('location') == $countryCode) {
$sel = 'selected="selected"';
} else {
$sel = '';
}
echo '<option value="'.$countryCode.'" '.$sel.'>'.$countryName.'</option>';
}
?>
</select>
<?php
if($location_error == true) {
echo '<p class="error">Please enter your location</p>';
}
?>
</dd>