undefined index for the ‘lang’

the problem is after the else the (lang) in undifined ..can any one help me with this :

<li><a href=”<?php if($_GET[‘lang’]!=”en”){ echo get_permalink( get_page_by_path( ‘login’ ) ); }else{echo get_permalink( get_page_by_path( ‘login’ ) ).”&lang=en”;} ?>” ><?php if(!isset($_GET[‘lang’])){ echo ” دخول “; }else{ echo ‘Sign in’; }?><i class=”fa fa-user” aria-hidden=”true”></i></a></li>
<li><a href=”<?php if($_GET[‘lang’]!=”en”){ echo get_permalink( get_page_by_path( ‘signup’ ) ); }else{echo get_permalink( get_page_by_path( ‘signup’ ) ).”&lang=en”;} ?>” > <?php if(!isset($_GET[‘lang’])){ echo ” تسجيل “; }else{ echo ‘Sign Up’; }?> <i class=”fa fa-user-plus” aria-hidden=”true”></i></a></li>
<?php }**else**{ ?>
<li><a href=”<?php if($_GET[‘***lang’***]!=”en”){ echo get_permalink( get_page_by_path( ‘account’ ) ); }else{echo get_permalink( get_page_by_path( ‘account’ ) ).”&lang=en”;} ?>” ><?php if(!isset($_GET[‘lang’])){ echo ” حسابي “; }else{ echo ‘My Account’; }?> <i class=”fa fa-user” aria-hidden=”true”></i></a></li>
<li><a href=”<?php if($_GET[‘lang’]!=”en”){ echo get_permalink( get_page_by_path( ‘logout’ ) ); }else{echo get_permalink( get_page_by_path( ‘logout’ ) ).”&lang=en”;} ?>”> <?php if(!isset($_GET[‘lang’])){ echo ” خروج “; }else{ echo ‘Logout’; }?> <i class=”fa fa-sign-out” aria-hidden=”true”></i></a></li>

Read more here:: undefined index for the ‘lang’

Leave a Reply

Your email address will not be published. Required fields are marked *