Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- foreach( $deliveryOptions as $description => $cost) {
- $location = $locationOptions[$description];
- //Show UK Delivery Options
- if($browsecountry=='GB') {
- if($location=='UK') { ?>
- <option <?php if( $_SESSION['delivery'] == $description ) { echo "selected=\"selected\""; } ?> value="<?php echo $description; ?>"><?php echo $description; ?></option>
- <?php
- } }
- //Show European Delivery Options
- elseif($browsecountry=='NL') {
- if($location=='Europe') { ?>
- <option <?php if( $_SESSION['delivery'] == $description ) { echo "selected=\"selected\""; } ?> value="<?php echo $description; ?>"><?php echo $description; ?></option>
- <?php
- } }
- //Show Delivery Options for the World
- else {
- if($location=='Rest of the World') {?>
- <option <?php if( $_SESSION['delivery'] == $description ) { echo "selected=\"selected\""; } ?> value="<?php echo $description; ?>"><?php echo $description; ?></option>
- <?php } }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement