您的位置:首页 > 其它

[置顶] a标签href跳转---传值---禁止单引号

2016-08-20 22:59 183 查看
禁止加单引号1  href传参的值  (&t_type='航班') 错误

<a href="check_apply?applyid=<?=$applyid?>&applyitem_id=<?=$applyitem_id;?>&t_type=航班&date=<?=$v['date'];?>">

禁止加单引号2   

$small = date('H:i',strtotime( ' -30 minute ', strtotime($small)));  //需要加单引号.表示字符串

$arrivedatetime =date('Y-m-d H:i',strtotime(  "+ ".$run_time_minute." minute"  ,strtotime($datetime_))); 

//字符串拼接,已经解析成字符串,禁止加单引号

strtotime(  "  ' +  ".$run_time_minute." minute ' "  ,time())

原文地址:http://www.cnblogs.com/bj-tony/p/5553365.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: