>" is enough."/> >" is enough.">
Home >Backend Development >PHP Problem >How to hide tags in php
How to implement hidden tags in php: first open the corresponding PHP sample file; then make a mark flag in php and pass it over; finally add "1ab560301fab44736dd7c82048726212>" is enough.
The operating environment of this article: windows7 system, PHP7.1 version, DELL G3 computer
Specific questions:
About the problem of hiding the div tag in PHP
<div id="tes">test</div> <input type="submit" onclick="a();" value="test" /> <?php function a(){ echo "<script type='text/javascript'> document.getElementById('tes').style.display='none'; </script>"; } ?>
What's wrong? If this function needs to be modified, how should it be modified?
Solution:
1. Because the hiding of the div tag itself is controlled by css style, that is, 10f1d8e6f3866207482c13756116f1ea950c0e09a208ea6a6c67c615a801fbc6 So the question will change to controlling the display in style
2. Answer the question in Part 1, make a mark flag in php and pass it over, and then in the html page
f8859a0e54815fde89728aa5fcff7c10 >16b28748ea4df4d9c2150843fecfba68 When the flag is set to true, it is hidden. When false, it will be displayed.
[Recommended learning: "PHP Video Tutorial"]
The above is the detailed content of How to hide tags in php. For more information, please follow other related articles on the PHP Chinese website!