input.html 源代码
Input FormName:
Age:
Address:
Sex: male
female
input.php源代码
input informationfunction GetParamString(&$str)
{
$strTemp = $str;
if (ini_get('magic_quotes_gpc'))
{
$str = stripslashes($strTemp);
}
return $str;
}
?>
$strName = $_POST['name'];
$nAge = $_POST['age'];
$strAddr = $_POST['addr'];
$bSex = $_POST['sex'];
GetParamString($strName);
GetParamString($nAge);
GetParamString($strAddr);
GetParamString($bSex);
echo "========== input information =========
/n";
echo "name = $strName
/n";
echo "age = $nAge
/n";
echo "address = $strAddr
/n";
echo "sex = $bSex
/n";
?>