</fieldset>
<div align=\"center\"><input type=\"submit\" name=\"submit\" value=\"Submit My Information\"/></div>
</form>
</body>
运行如下:
2.php
当输入一些数据点submit时,会调用2.php:
<body>
<?php
$name=$_REQUEST[\'name\'];
$email=$_REQUEST[\'email\'];
$comments=$_REQUEST[\'comments\'];
echo \"<p>Thank you.<b>$name</b>.for the following comments:<br/><tt>$comments</tt></p>n\";
?>
</body>
运行如下:
管理Magic Quotes(魔术引用):
对变量的值中的单引号和双引号进行转义。