skymvc开发手册之Get/POST请求信息
查看视频教程或者获取有关《skymvc开发手册》更多信息

Get/POST请求信息

skymv获取get/post请求有三个函数

//获取get请求数据
get($k,$format="x",$len=0)
//获取post请求数据
post($k,$format="x",$len=0)
//获取get、post请求的数据
get_post($k,$format="x",$len=0)

$format格式化参数说明
    i 整型
    f 浮点类型
    h html格式化
    s 移除html标签
    x 富文本处理
    r 四舍五入
    a 默认原样返回
  
$a=get("a","h");
$m=post("m","h");
$c=get_post("c","h");