English 中文(简体)
PHP 可变问题
原标题:PHP Variable Issue
  • 时间:2010-08-13 16:14:21
  •  标签:
  • php
  • html

对于开办者,我完全是新颖的。 这就是说的,这里是我的问题。

I ve got a web page Index. 包括头盔的营地。 php和脚本。 我的指数最高。 php page I have:

<?php $pageID =  home ; ?>

负责人。 php file I have

<body id="<?php echo $pageID; ?>">

然而,当页数时,正体的面体仅看以下几点:<上面=”>

我做了一些错误?

增 编

最佳回答

检查,以确保你重新申报<代码>$ID<>>>> , 包括header.php。 如果您不这样做,header.php t 赢得你的<代码>$pageID可变值,因为你的指数文档在填入后才能确定,因此只字不提。

在法典方面,检查这些指挥部的命令是:

$pageID =  home ;
// anything else that might be in between
include  header.php ;

反对:

include  header.php ;
// anything else that might be in between
$pageID =  home ;
问题回答

暂无回答




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签