正在试图通过hrough URL中的值,但是当我找回它看起来像这样“进行urlencode(15.99),”重定向进行urlencode问题
值是正确的,但我已经尝试不同的东西,但仍无法只发送没有urlencode或添加语法的值 正在尝试发送该值的代码行是
redirect_to(“$ the_file_is?subj ='。urlencode($ the_price_is)'”);
正在试图通过hrough URL中的值,但是当我找回它看起来像这样“进行urlencode(15.99),”重定向进行urlencode问题
值是正确的,但我已经尝试不同的东西,但仍无法只发送没有urlencode或添加语法的值 正在尝试发送该值的代码行是
redirect_to(“$ the_file_is?subj ='。urlencode($ the_price_is)'”);
这应该做你要找什么,假设我理解正确的话: redirect_to($the_file_is . '?subj=' . urlencode($the_price_is));
当然只是改变......
redirect_to($the_file_is."?subj=" . urlencode($the_price_is));
几乎没有 - 报价混乱的只是一点点:)
redirect_to("$the_file_is?subj=" . urlencode($the_price_is));
值得一提的是,你可以在斗引用变量可以引用如下:
echo "hello $name";
会工作,但echo "$actioned";
可能需要为echo "{$action}ed"; echo $action.'ed';
,具体取决于。
谢谢skipychalmers php有时看起来好像学了很多东西学习 – percy 2011-04-19 18:53:09
没问题;)我知道你的意思! – 2011-04-20 12:57:20
感谢有新的PHP有时我忘记了基础知识,所以再次感谢 – percy 2011-04-19 11:12:25
没有后顾之忧,碰巧给大家! – GordyD 2011-04-19 11:25:48