不可以这样写
嵌入文件时无须传递变量,被嵌入的文件与原文件视为一体。<?
$action = "top";
include "list.php"
?>list.php
<?
echo $action;
?>