【php开源代码栏目提醒】:文章导读:在新的一年中,各位网友都进入紧张的学习或是工作阶段。网学会员整理了php开源代码-readvals.inc.php的相关内容供大家参考,祝大家在新的一年里工作和学习顺利!
<?php
// some values we read through get or post
$page="main";
if (!empty($_GET['page'])) {
$page=strip_slashes($_GET['page']);
}
if (!empty($_GET['action'])) {
$action=strip_slashes($_GET['action']);
}
if (!empty($_POST['action'])) {
$action=strip_slashes($_POST['action']);
}
if (!empty($_GET['cat'])) {
$cat=intval(strip_slashes($_GET['cat']));
}
if (!empty($_GET['prod'])) {
$prod=intval(strip_slashes($_GET['prod']));
}
if (!empty($_GET['group'])) {
$group=intval(strip_slashes($_GET['group']));
}
?>