Как при переходе на другую странице сохранять выбранное значение select
<?php if ($option['type'] == 'select') { ?>
<div id="option-<?php echo $option['product_option_id']; ?>" class="option">
<div class="optionsnam">
<b><?php echo $option['name']; ?>:</b><br />
</div>
<select class="form-control" name="option[<?php echo $option['product_option_id']; ?>]"
onchange="calc_price(<?php echo $product['product_id']; ?>);" >
<?php /* <option value=""
price_prefix="+" price="0"><?php echo $text_select; ?></option> */ ?>
<?php foreach ($option['option_value'] as $option_value) { ?>
<option value="<?php echo $option_value['product_option_value_id']; ?>"
price_prefix="<?php echo $option_value['price_prefix']; ?>" price="<?php echo $option_value['price_value']; ?>"
><?php echo $option_value['name']; ?>
<?php if ($option_value['price']) { ?>
(<?php echo $option_value['price_prefix']; ?><?php echo $option_value['price']; ?>)
<?php } ?>
</option>
<?php } ?>
</select>
</div>
<br />
<?php } ?>