Php 使用urlencode重定向问题

Php 使用urlencode重定向问题,php,url,urlencode,Php,Url,Urlencode,我试图通过URL传递值,但当我检索它时,它显示如下',urlencode(15.99),' 该值是正确的,但我尝试了不同的方法,但仍然无法在没有urlencode或添加语法的情况下发送该值 我试图发送值的代码行为 将_重定向到(“$the_file_is?subc=”.urlencode($the_price_is)”) 假设我理解正确,这应该符合您的要求: redirect_to($the_file_is.”?subc='.urlencode($the_price_is))当然只要换成 red

我试图通过URL传递值,但当我检索它时,它显示如下',urlencode(15.99),'

该值是正确的,但我尝试了不同的方法,但仍然无法在没有urlencode或添加语法的情况下发送该值 我试图发送值的代码行为


将_重定向到(“$the_file_is?subc=”.urlencode($the_price_is)”)

假设我理解正确,这应该符合您的要求:
redirect_to($the_file_is.”?subc='.urlencode($the_price_is))

当然只要换成

redirect_to($the_file_is."?subj=" . urlencode($the_price_is));

差不多了——只是有点语录混乱:)

将_重定向到(“$the_file_is?subg=“.urlencode($the_price_is))

值得注意的是,您可以引用双引号中的变量,以便:


echo“hello$name”将起作用,但
echo“$actioned”可能需要
回显“{$action}”;echo$action'ed'视情况而定。

谢谢我是新来php的,有时我会忘记一些基本知识,所以再次谢谢大家,不用担心,每个人都会遇到这种情况!感谢skipychalmers php有时在学习时似乎需要学习很多东西