首页 > Web开发 > 详细

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

时间:2016-06-02 16:15:26      阅读:269      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!