I have the following piece of code that allows me to store new information in a MySQL database and also allows me to recover the saved information and make a modification if I wish.
<input class="input_mayuscula" type="text" name="sistema_enc" value="<?php echo $alm->__GET('sistema_enc'); ?>" style="width:100%;" />
But I would like to simplify it with the use of a SELECT since the variables will always be the same. I have tried changing the original code by the SELECT and it works perfect to store new data, but when I am going to edit the option shown by default it is the one of position 0.
The SELECT code is:
<select name="sistema_enc" class="input_mayuscula" value="<?php echo $alm->__GET('sistema_enc'); ?>">
<option value=""></option>
<option value="MRW">MRW</option>
<option value="DOMESA">DOMESA</option>
<option value="GRUPOO ZOOM">GRUPO ZOOM</option>
<option value="TEALCA">TEALCA</option>
<option value="SEREX">SEREX</option>
</select>