i have a PHP codes in index.php like this:
<?php
$modal = @$_GET["mod"];
switch ($modal){
default:
include "blank.php";
break;
case "video":
include "video.php";
break;
}
?>
In my video.php i have some text:
<p> Welcome, this is video page </p>
When i am clicking:
<a href=index.php?mod=video> This is nice video </a>
I am getting the message "Welcome this is video page" until here everything is working...
The problem is when i am putting the paragraph inside in div, my paragraph is hiding...
<div style="z-index:3;position:fixed;height:100%;width:100%;background-color:black;>
<p> Welcome, this is video page </p>
</div>
The question is: How to activate this div style ? I want to see this div style.
Error: You missed "
in style
Replace this to:
<div style="z-index:3;position:fixed;height:100%;width:100%;background-color:black;>
<p> Welcome, this is video page </p>
</div>
This:
<div style="z-index:3;position:fixed;height:100%;width:100%;background-color:black;">
<p> Welcome, this is video page </p>
</div>
You're missing a "
after background-color:black;
:
<div style="z-index:3;position:fixed;height:100%;width:100%;background-color:black;">
<p> Welcome, this is video page </p>
</div>
But the default will be black on a black background so be sure to change the text color.
Also as noticed by @JustOnUnderMillions :
<?php
$modal = @$_GET["mod"];
switch ($modal){
case "video":
include "video.php";
break;
default:
include "blank.php";
break;
}
?>
default
should always be the last element of your switch.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.