I have a lot of Presenters from all around the world, and need them to indicate to me what timezone they reside in.
However, I am uncertain how to send the value they have selected across to the update query, when they push the "Update" button.
I am sure that, as ever, it is quite elementary.
Thank you for your kindness.
Here is the coding I have thus far
<form name="mytimezoner" method="post" action="">
$regions = array(
'America' => DateTimeZone::AMERICA,
'Pacific' => DateTimeZone::PACIFIC,
'Europe' => DateTimeZone::EUROPE,
'Australia' => DateTimeZone::AUSTRALIA,
'Asia' => DateTimeZone::ASIA,
'Indian' => DateTimeZone::INDIAN,
'Africa' => DateTimeZone::AFRICA,
'Atlantic' => DateTimeZone::ATLANTIC,
'Antarctica' => DateTimeZone::ANTARCTICA
$timezones = array();
foreach ($regions as $name => $mask)
$zones = DateTimeZone::listIdentifiers($mask);
foreach($zones as $timezone)
// Get current time
$time = new DateTime(NULL, new DateTimeZone($timezone));
// Change from military time
$ampm = $time->format('H') > 12 ? ' ('. $time->format('g:i a'). ')' : '';
// Remove region name and add a sample time
$timezones[$name][$timezone] = substr($timezone, strlen($name) + 1) . ' - ' . $time->format('H:i') . $ampm;
// Create Viewable Selections
print '<label>Select Your Timezone</label><select name = "timezone" id="timezone">';
foreach($timezones as $region => $list)
print '<optgroup label="' . $region . '">' . "\n";
foreach($list as $timezone => $name)
// print '<option name="' . $timezone . '">' . $name . '</option>' . "\n";
print '<option value="' . $timezone . '">' . $name . '</option>' . "\n";
print '<optgroup>' . "\n";
<input type="submit" name="Update" class="button fit primary" value="Press to Save and Update">
I am simply uncertain what to put in the fields DataAssist kindly provides for me as a part of its convenient Update query.