1个回答
展开全部
<?
$title = "要传递的变量内容";
?>
<form action="other.php" method="post">
<input type="hidden" name="title" value="<?=$title?>" />
<input type="submit" value="传递变量title到other页面" />
</form>
other.php接收变量
<?
$title = $_POST["title"];
echo $title;
?>
$title = "要传递的变量内容";
?>
<form action="other.php" method="post">
<input type="hidden" name="title" value="<?=$title?>" />
<input type="submit" value="传递变量title到other页面" />
</form>
other.php接收变量
<?
$title = $_POST["title"];
echo $title;
?>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询