PHP - aria-current not display [on hold]











up vote
-2
down vote

favorite












sorry about my English , my PHP knowledge is very poor...



so , my problem.. I have a File , heard.php where have all PHP Code , here the PHP Code which I think making the problem...



<nav class="link_wechsel">
<h2 class="visually-hidden">Page navigation</h2>
<ul>
<li><a <?php if ($current_page=="1"): ?>aria-current="page" <?php endif ?> href="prove-1.php">1</a></li>
<li><a <?php if ($current_page=="2"): ?>aria-current="page" <?php endif ?> href="prove-2.php">2</a></li>
<li><a <?php if ($current_page=="3"): ?>aria-current="page" <?php endif ?> href="prove-3.php">3</a></li>
</ul>
</nav>


and here all Code from the heard.php File;



<?php  
header("Content-Type: text/html; Charset=utf-8");
mb_internal_encoding('UTF-8');
date_default_timezone_set('UTC');
error_reporting(E_ALL);

?>

<!doctype html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>header-beispiel</title>
</head>
<style>
.link_wechsel ul {

list-style-type: none;

margin-left: 340px;
}

.link_wechsel li { display: inline; }

.link_wechsel a {

display: inline;
text-decoration: none;
border: 1px solid gray;
background-color: #FE2E64;
color: black;
padding: 8px;
opacity: 0.5;
font-family: Times New Roman;
}

.link_wechsel a:hover { background-color: #9f9e9e; }

.link_wechsel a.[aria-current=page] {

background-color: green;
}

</style>
<body>
<header>
</header>
<nav class="link_wechsel">
<ul>
<li><a <?php if ($current_page=="1"): ?>aria-current="page" <?php endif ?> href="beispiel-1.php">1</a></li>
<li><a <?php if ($current_page=="2"): ?>aria-current="page" <?php endif ?> href="beispiel-2.php">2</a></li>
<li><a <?php if ($current_page=="3"): ?>aria-current="page" <?php endif ?> href="beispiel-3.php">3</a></li>
</ul>
</nav>
</body>
</html>


Than i have three File where display this Code , Prove-1.php, Prove-2.php and Prove-3.php , here the Code;



<?php  
$current_page = "1";
require 'header.php';

header("Content-Type: text/html; Charset=utf-8");
mb_internal_encoding('UTF-8');
date_default_timezone_set('UTC');
error_reporting(E_ALL);
?>

<!doctype html>
<html lang="en">

<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>beispiel-1</title>
</head>
<body>
<h3>Page 1</h3>
</body>
</html>


On all Three File I have identical Code , only to change $current_page = "1"; , with $current_page = "2"; and $current_page = "3";.. a Screenshot how to see all this Three File..



enter image description here



as your can see the CSS Code,



.link_wechsel a.[aria-current=page] { background-color: green; }


not Display...



Can Please anyone help me and found a solution from my Problem , Thanks !










share|improve this question









New contributor




3edf1w is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











put on hold as off-topic by πάντα ῥεῖ, Mathias Ettinger, Heslacher, Graipher, 200_success 13 hours ago


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Code not implemented or not working as intended: Code Review is a community where programmers peer-review your working code to address issues such as security, maintainability, performance, and scalability. We require that the code be working correctly, to the best of the author's knowledge, before proceeding with a review." – πάντα ῥεῖ, Mathias Ettinger, Heslacher, Graipher, 200_success

If this question can be reworded to fit the rules in the help center, please edit the question.









  • 1




    I'm afraid this question does not match what this site is about. Code Review is about improving existing, working code. Code Review is not the site to ask for help in fixing or changing what your code does. Once the code does what you want, we would love to help you do the same thing in a cleaner way! Please see our help center for more information.
    – Mathias Ettinger
    15 hours ago










  • sorry , i have to thinks , here people review the Code when it not work ...thank for you explanation what here to does .
    – 3edf1w
    14 hours ago















up vote
-2
down vote

favorite












sorry about my English , my PHP knowledge is very poor...



so , my problem.. I have a File , heard.php where have all PHP Code , here the PHP Code which I think making the problem...



<nav class="link_wechsel">
<h2 class="visually-hidden">Page navigation</h2>
<ul>
<li><a <?php if ($current_page=="1"): ?>aria-current="page" <?php endif ?> href="prove-1.php">1</a></li>
<li><a <?php if ($current_page=="2"): ?>aria-current="page" <?php endif ?> href="prove-2.php">2</a></li>
<li><a <?php if ($current_page=="3"): ?>aria-current="page" <?php endif ?> href="prove-3.php">3</a></li>
</ul>
</nav>


and here all Code from the heard.php File;



<?php  
header("Content-Type: text/html; Charset=utf-8");
mb_internal_encoding('UTF-8');
date_default_timezone_set('UTC');
error_reporting(E_ALL);

?>

<!doctype html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>header-beispiel</title>
</head>
<style>
.link_wechsel ul {

list-style-type: none;

margin-left: 340px;
}

.link_wechsel li { display: inline; }

.link_wechsel a {

display: inline;
text-decoration: none;
border: 1px solid gray;
background-color: #FE2E64;
color: black;
padding: 8px;
opacity: 0.5;
font-family: Times New Roman;
}

.link_wechsel a:hover { background-color: #9f9e9e; }

.link_wechsel a.[aria-current=page] {

background-color: green;
}

</style>
<body>
<header>
</header>
<nav class="link_wechsel">
<ul>
<li><a <?php if ($current_page=="1"): ?>aria-current="page" <?php endif ?> href="beispiel-1.php">1</a></li>
<li><a <?php if ($current_page=="2"): ?>aria-current="page" <?php endif ?> href="beispiel-2.php">2</a></li>
<li><a <?php if ($current_page=="3"): ?>aria-current="page" <?php endif ?> href="beispiel-3.php">3</a></li>
</ul>
</nav>
</body>
</html>


Than i have three File where display this Code , Prove-1.php, Prove-2.php and Prove-3.php , here the Code;



<?php  
$current_page = "1";
require 'header.php';

header("Content-Type: text/html; Charset=utf-8");
mb_internal_encoding('UTF-8');
date_default_timezone_set('UTC');
error_reporting(E_ALL);
?>

<!doctype html>
<html lang="en">

<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>beispiel-1</title>
</head>
<body>
<h3>Page 1</h3>
</body>
</html>


On all Three File I have identical Code , only to change $current_page = "1"; , with $current_page = "2"; and $current_page = "3";.. a Screenshot how to see all this Three File..



enter image description here



as your can see the CSS Code,



.link_wechsel a.[aria-current=page] { background-color: green; }


not Display...



Can Please anyone help me and found a solution from my Problem , Thanks !










share|improve this question









New contributor




3edf1w is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











put on hold as off-topic by πάντα ῥεῖ, Mathias Ettinger, Heslacher, Graipher, 200_success 13 hours ago


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Code not implemented or not working as intended: Code Review is a community where programmers peer-review your working code to address issues such as security, maintainability, performance, and scalability. We require that the code be working correctly, to the best of the author's knowledge, before proceeding with a review." – πάντα ῥεῖ, Mathias Ettinger, Heslacher, Graipher, 200_success

If this question can be reworded to fit the rules in the help center, please edit the question.









  • 1




    I'm afraid this question does not match what this site is about. Code Review is about improving existing, working code. Code Review is not the site to ask for help in fixing or changing what your code does. Once the code does what you want, we would love to help you do the same thing in a cleaner way! Please see our help center for more information.
    – Mathias Ettinger
    15 hours ago










  • sorry , i have to thinks , here people review the Code when it not work ...thank for you explanation what here to does .
    – 3edf1w
    14 hours ago













up vote
-2
down vote

favorite









up vote
-2
down vote

favorite











sorry about my English , my PHP knowledge is very poor...



so , my problem.. I have a File , heard.php where have all PHP Code , here the PHP Code which I think making the problem...



<nav class="link_wechsel">
<h2 class="visually-hidden">Page navigation</h2>
<ul>
<li><a <?php if ($current_page=="1"): ?>aria-current="page" <?php endif ?> href="prove-1.php">1</a></li>
<li><a <?php if ($current_page=="2"): ?>aria-current="page" <?php endif ?> href="prove-2.php">2</a></li>
<li><a <?php if ($current_page=="3"): ?>aria-current="page" <?php endif ?> href="prove-3.php">3</a></li>
</ul>
</nav>


and here all Code from the heard.php File;



<?php  
header("Content-Type: text/html; Charset=utf-8");
mb_internal_encoding('UTF-8');
date_default_timezone_set('UTC');
error_reporting(E_ALL);

?>

<!doctype html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>header-beispiel</title>
</head>
<style>
.link_wechsel ul {

list-style-type: none;

margin-left: 340px;
}

.link_wechsel li { display: inline; }

.link_wechsel a {

display: inline;
text-decoration: none;
border: 1px solid gray;
background-color: #FE2E64;
color: black;
padding: 8px;
opacity: 0.5;
font-family: Times New Roman;
}

.link_wechsel a:hover { background-color: #9f9e9e; }

.link_wechsel a.[aria-current=page] {

background-color: green;
}

</style>
<body>
<header>
</header>
<nav class="link_wechsel">
<ul>
<li><a <?php if ($current_page=="1"): ?>aria-current="page" <?php endif ?> href="beispiel-1.php">1</a></li>
<li><a <?php if ($current_page=="2"): ?>aria-current="page" <?php endif ?> href="beispiel-2.php">2</a></li>
<li><a <?php if ($current_page=="3"): ?>aria-current="page" <?php endif ?> href="beispiel-3.php">3</a></li>
</ul>
</nav>
</body>
</html>


Than i have three File where display this Code , Prove-1.php, Prove-2.php and Prove-3.php , here the Code;



<?php  
$current_page = "1";
require 'header.php';

header("Content-Type: text/html; Charset=utf-8");
mb_internal_encoding('UTF-8');
date_default_timezone_set('UTC');
error_reporting(E_ALL);
?>

<!doctype html>
<html lang="en">

<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>beispiel-1</title>
</head>
<body>
<h3>Page 1</h3>
</body>
</html>


On all Three File I have identical Code , only to change $current_page = "1"; , with $current_page = "2"; and $current_page = "3";.. a Screenshot how to see all this Three File..



enter image description here



as your can see the CSS Code,



.link_wechsel a.[aria-current=page] { background-color: green; }


not Display...



Can Please anyone help me and found a solution from my Problem , Thanks !










share|improve this question









New contributor




3edf1w is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











sorry about my English , my PHP knowledge is very poor...



so , my problem.. I have a File , heard.php where have all PHP Code , here the PHP Code which I think making the problem...



<nav class="link_wechsel">
<h2 class="visually-hidden">Page navigation</h2>
<ul>
<li><a <?php if ($current_page=="1"): ?>aria-current="page" <?php endif ?> href="prove-1.php">1</a></li>
<li><a <?php if ($current_page=="2"): ?>aria-current="page" <?php endif ?> href="prove-2.php">2</a></li>
<li><a <?php if ($current_page=="3"): ?>aria-current="page" <?php endif ?> href="prove-3.php">3</a></li>
</ul>
</nav>


and here all Code from the heard.php File;



<?php  
header("Content-Type: text/html; Charset=utf-8");
mb_internal_encoding('UTF-8');
date_default_timezone_set('UTC');
error_reporting(E_ALL);

?>

<!doctype html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>header-beispiel</title>
</head>
<style>
.link_wechsel ul {

list-style-type: none;

margin-left: 340px;
}

.link_wechsel li { display: inline; }

.link_wechsel a {

display: inline;
text-decoration: none;
border: 1px solid gray;
background-color: #FE2E64;
color: black;
padding: 8px;
opacity: 0.5;
font-family: Times New Roman;
}

.link_wechsel a:hover { background-color: #9f9e9e; }

.link_wechsel a.[aria-current=page] {

background-color: green;
}

</style>
<body>
<header>
</header>
<nav class="link_wechsel">
<ul>
<li><a <?php if ($current_page=="1"): ?>aria-current="page" <?php endif ?> href="beispiel-1.php">1</a></li>
<li><a <?php if ($current_page=="2"): ?>aria-current="page" <?php endif ?> href="beispiel-2.php">2</a></li>
<li><a <?php if ($current_page=="3"): ?>aria-current="page" <?php endif ?> href="beispiel-3.php">3</a></li>
</ul>
</nav>
</body>
</html>


Than i have three File where display this Code , Prove-1.php, Prove-2.php and Prove-3.php , here the Code;



<?php  
$current_page = "1";
require 'header.php';

header("Content-Type: text/html; Charset=utf-8");
mb_internal_encoding('UTF-8');
date_default_timezone_set('UTC');
error_reporting(E_ALL);
?>

<!doctype html>
<html lang="en">

<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>beispiel-1</title>
</head>
<body>
<h3>Page 1</h3>
</body>
</html>


On all Three File I have identical Code , only to change $current_page = "1"; , with $current_page = "2"; and $current_page = "3";.. a Screenshot how to see all this Three File..



enter image description here



as your can see the CSS Code,



.link_wechsel a.[aria-current=page] { background-color: green; }


not Display...



Can Please anyone help me and found a solution from my Problem , Thanks !







php css






share|improve this question









New contributor




3edf1w is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




3edf1w is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 15 hours ago





















New contributor




3edf1w is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 15 hours ago









3edf1w

12




12




New contributor




3edf1w is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





3edf1w is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






3edf1w is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




put on hold as off-topic by πάντα ῥεῖ, Mathias Ettinger, Heslacher, Graipher, 200_success 13 hours ago


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Code not implemented or not working as intended: Code Review is a community where programmers peer-review your working code to address issues such as security, maintainability, performance, and scalability. We require that the code be working correctly, to the best of the author's knowledge, before proceeding with a review." – πάντα ῥεῖ, Mathias Ettinger, Heslacher, Graipher, 200_success

If this question can be reworded to fit the rules in the help center, please edit the question.




put on hold as off-topic by πάντα ῥεῖ, Mathias Ettinger, Heslacher, Graipher, 200_success 13 hours ago


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Code not implemented or not working as intended: Code Review is a community where programmers peer-review your working code to address issues such as security, maintainability, performance, and scalability. We require that the code be working correctly, to the best of the author's knowledge, before proceeding with a review." – πάντα ῥεῖ, Mathias Ettinger, Heslacher, Graipher, 200_success

If this question can be reworded to fit the rules in the help center, please edit the question.








  • 1




    I'm afraid this question does not match what this site is about. Code Review is about improving existing, working code. Code Review is not the site to ask for help in fixing or changing what your code does. Once the code does what you want, we would love to help you do the same thing in a cleaner way! Please see our help center for more information.
    – Mathias Ettinger
    15 hours ago










  • sorry , i have to thinks , here people review the Code when it not work ...thank for you explanation what here to does .
    – 3edf1w
    14 hours ago














  • 1




    I'm afraid this question does not match what this site is about. Code Review is about improving existing, working code. Code Review is not the site to ask for help in fixing or changing what your code does. Once the code does what you want, we would love to help you do the same thing in a cleaner way! Please see our help center for more information.
    – Mathias Ettinger
    15 hours ago










  • sorry , i have to thinks , here people review the Code when it not work ...thank for you explanation what here to does .
    – 3edf1w
    14 hours ago








1




1




I'm afraid this question does not match what this site is about. Code Review is about improving existing, working code. Code Review is not the site to ask for help in fixing or changing what your code does. Once the code does what you want, we would love to help you do the same thing in a cleaner way! Please see our help center for more information.
– Mathias Ettinger
15 hours ago




I'm afraid this question does not match what this site is about. Code Review is about improving existing, working code. Code Review is not the site to ask for help in fixing or changing what your code does. Once the code does what you want, we would love to help you do the same thing in a cleaner way! Please see our help center for more information.
– Mathias Ettinger
15 hours ago












sorry , i have to thinks , here people review the Code when it not work ...thank for you explanation what here to does .
– 3edf1w
14 hours ago




sorry , i have to thinks , here people review the Code when it not work ...thank for you explanation what here to does .
– 3edf1w
14 hours ago















active

oldest

votes






















active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes

Popular posts from this blog

Quarter-circle Tiles

build a pushdown automaton that recognizes the reverse language of a given pushdown automaton?

Mont Emei