开发者

How do i send a link with get values in it to an email?

I want my site to email a a link to users using passed in variables from get. in the form of www.test.com/test.php&test=testing+this+is+a+test

b开发者_开发知识库ut when i do something like this,

$msg= "testing".$_GET('details');

It spits out "www.test.com/test.php&test=testing this is a test" [with spaces and not '+' signs]

Any ideas how i can pass it in unformatted?


Use urlencode() on any string you intend to use as a GET parameter.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜