Looking for answers online about PHP, how to solve the problem of not directly accessing the super-global $_GET array?
hhuan
hhuan 2019-06-10 11:08:00
0
1
1484
<body onselectstart="return false">
<!--==============================
              header
=================================-->
<header id="home" class="page">
  <div class="navigation single-page-nav">
    <div class="container_12">
      <div class="grid_12">
        <h1 class="logo">
            <img src ="images/logo.png" style="width:120px;height:90px;left: 0;top:0;position:absolute"/>
        </h1>
        <nav>
          <ul>
           <li><a href="#home" class="current">发现音乐</a></li>
           <li><?php echo '<a href=mysong.php?user='.$_GET['name']."&class=".$_GET['class'].'>我的音乐</a>';?></li>
           <?php  if (isset($_GET['name'])) {
               echo '<li><a href="index.php">退出</a></li>';
           } else {
               echo '<li><a href="index.php">登录</a></li>';
           }
           ?>
           <?php 
           if ($_GET['class'] == '3') {
               echo '<li><a href="//music.163.com/?user=' . $_GET['name'] . '">下载</a></li>';
           } else {
               echo '<li><a  href="" onclick="y()">下载</a></li>';
           }
               ?>

          
               <li><form action=<?php echo "play/search.php";?> name="search" method="get">
              <table border="0" align="center" cellpadding="0" cellspacing="0" class="tab_search">
                <tr>
                  <td>
                    <input type="text" name="searchin" title="Search" class="searchinput" id="searchinput"  value="春风十里" size="10"/>
                  </td>
                  <td>
                    <input type="image" width="21" height="17" class="searchaction" onclick="document.forms['search'].searchinput.value='';" alt="Search" src="images/magglass.gif" border="0" hspace="2"/>
                  </td>
                </tr>
              </table>
            </form>
          </li>
          <li><?php echo '<a href=mysong.php?user='.$_GET['name'].'>用户:'.$_GET['name'].'</a>';?></li>
         </ul>
        </nav>
      </div>
    </div>
  </div>
</header>


<!--=====================
          Content
======================-->

  <div class="ic"></div>
  
<section id="portfolio" class="page">

</section>

<section id="portfolio2" class="page">
<ul class="m_list">
  <li><a href=<?php echo"list.php?a=1"."&class=".$_GET['class']."&name=".$_GET['name']."&b=".$_GET['b']; ?> >内地榜</a></li>
  <li><a href=<?php echo"list.php?a=2"."&class=".$_GET['class']."&name=".$_GET['name']."&b=".$_GET['b']; ?> >欧美榜</a></li>
  <li><a href=<?php echo"list.php?a=3"."&class=".$_GET['class']."&name=".$_GET['name']."&b=".$_GET['b']; ?> >日语榜</a></li>
  <li><a href=<?php echo"list.php?a=4"."&class=".$_GET['class']."&name=".$_GET['name']."&b=".$_GET['b']; ?> >韩语榜</a></li>
</ul>
<ul class="s_list">
  <li></li>
  <li><a href="#" >入驻歌手</a></li>
  <li></li>
</ul>
<ul class="h_list">
  <li><a href=<?php echo"list.php?b=1"."&class=".$_GET['class']."&name=".$_GET['name']."&a=".$_GET['a']; ?> >热门</a></li>
  <li><a href=<?php echo"list.php?b=2"."&class=".$_GET['class']."&name=".$_GET['name']."&a=".$_GET['a']; ?> >流行</a></li>
  <li><a href=<?php echo"list.php?b=3"."&class=".$_GET['class']."&name=".$_GET['name']."&a=".$_GET['a']; ?> >摇滚</a></li>
  <li><a href=<?php echo"list.php?b=4"."&class=".$_GET['class']."&name=".$_GET['name']."&a=".$_GET['a']; ?> >电子</a></li>
</ul>

</section>


hhuan
hhuan

reply all(1)
angryTom

The data in $_GET can be stored in custom global variables online. If you need to use these data, you can access these data through custom global variables

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template