开发者

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

开发者 https://www.devze.com 2023-01-26 21:17 出处:网络
I want my site to email a a link to users using passed in variables from get. in the form ofwww.test.com/test.php&test=testing+this+is+a+test

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

精彩评论

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