开发者

PHP: $ get inside

So I want Get the part of url into a php This is my script

I want $_GET["m"]

Insidr of

<?php include('links.php'); ?>
<?php echo $title ?>

<?php include('links开发者_JAVA百科.php'); ?>
<ul class="pageitem"><li class="textbox"><p> the codes go here</p></li></ul>


Teh codes are in dere:

<?php include('links.php'); ?>
<?php echo $title ?>

<?php include('links.php'); ?>
<ul class="pageitem"><li class="textbox"><p><?php echo $_GET["m"]; ?></p></li></ul>

But you seemed to have $title printing just fine. Is this what you're looking for? I'm not exactly sure of what you are asking.


$_GET is a Superglobal in PHP. You can use it anywhere...

<?php include('links.php'); ?>
<?php echo $title; ?>

<?php include('links.php'); /* Is the double include intended? */ ?>
<ul class="pageitem">
  <li class="textbox">
    <p>
      I like a having my <?php echo $_GET['m']; ?>
      in the morning. Who doesn't
      like <?php echo $_GET['m']; ?> in the morning anyway?
    </p>
  </li>
</ul>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜