Answer the question
In order to leave comments, you need to log in
How to cut down dependence of mode from the transferred parameter?
Good afternoon. Help a newbie. There is a multiland, it was created using
<?php if( (isset($_GET['mode']) && $_GET['mode'] == 'znachenie1') ) { ?>
<?php } elseif ( (isset($_GET['mode']) && $_GET['mode'] == 'znachenie2') ) { ?>
<?php } elseif ( (isset($_GET['mode']) && $_GET['mode'] == 'znachenie3') ) { ?>
<?php } else { ?>
<?php }?>
Answer the question
In order to leave comments, you need to log in
Who helped thanks, found the solution, it was necessary to replace if( (isset($_GET['mode']) && $_GET['mode'] == 'znachenie1') with if( $_SERVER['HTTP_HOST'] == ' desireddomain.rf' )
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question