A 页传值到 B 页
B 页代码:
<?PHP
$a=$_POST['textfield'];
echo $a;
echo $_GET['name'];
<?PHP echo $_GET["参数名 1"]; ?>
<BR />
<?PHP echo $_GET["参数名 2"]; ?>
<BR />
<?PHP echo $_GET["参数名 3"]; ?>
?>
A 页代码:
1、
<form id="form1" name="form1" method="post"
action="B.php">
<label>
<input type="text" name="textfield" />
</label>
<label>
<input type="submit" name="Submit" value="提交" />
</label>
</form>
2、echo "<a href='B.php?name=我'>here</a>"
3、echo "<a href='B.php?参数名 1=参数值 1&参数名 2=参数值 2&