码迷,mamicode.com
首页 > Web开发 > 详细

a标签href跳转---传值---禁止单引号

时间:2016-06-02 16:16:11      阅读:376      评论:0      收藏:0      [点我收藏+]

标签:

禁止加单引号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())

a标签href跳转---传值---禁止单引号

标签:

原文地址:http://www.cnblogs.com/bj-tony/p/5553365.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!