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.
精彩评论