How could I take the value of two
PHP to receive them to be able to make a
foreach and insert it in the database? since what is required is for a user to have two roles at the same time.
that is to say that in my detail table you can insert at the same time the id of the user and the role which would be in the following way:
detalle_id_usuario: 1 detalle_id_usuario: 1 detalle_id_rol: 1 (Administrador) detalle_id_rol: 5 (coordinador)
Something like that is how it should be inserted at the same time but I do not know in what way ... I would appreciate the collaboration.
<select name="rol_usuario"> <option value="1">Administrador</option> <option value="2">usuario</option> </select> <select name="rol_usuario"> <option value="3">jefe de area</option> <option value="4">tecnico</option> <option value="5">coordinador</option> </select>