나는 매우 이상한 문제가있다. PHP 코드에서 PHP 코드를 사용하여 전자 메일 내용을 작성하고이 링크를 생성했습니다."& key"는 PHP에서 무엇을 의미합니까?
....
<a href="http://www.domain.com/act.php?id=' . $userid . '&key=' . $actkey . '">http://www.domain.com/act.php?id=' . $userid . '&key=' . $actkey . '</a>
....
대개의 경우, 정상적으로 작동합니다. 그런 다음 정품 인증을받을 수 없다는 불만이 많습니다.
<a href="http://www.domain.com/act.php?id=20090=hsdf87hsf89sd">http://www.domain.com/act.php?id=20090=hsdf87hsf89sd'</a>
은 "& 키가"없는 : 자신의 이메일을 확인 후, 나는이를 발견했다. 왜? 아주 이상한 버그!
전체 PHP 명령 :
$content = '<div style="font-family:Calibri; color:#333;">
Hi there, <br><br>
Thank you for register to our website, click the following link to activate your account:<br><br>
<a href="http://www.domain.com/act.php?id=' . $userid . '&key=' . $actkey . '">http://www.domain.com/act.php?id=' . $userid . '&key=' . $actkey . '</a><br><br>
XXX Team</div>';
검보를 잘 할 수있는, 내 이메일 내용은 HTML 기반 :
$headers .= 'Content-type: text/html; charset=UTF-8' . "\r\n";
http://www.domain.com/act.php?id=12&key=abc%26def
나는 당신이 인용 문제가있다 생각합니다. 해당 문자열로 이어지는 전체 PHP 명령을 게시 할 수 있습니까? –질문 편집 및 링크 생성 방법 게시 – Pentium10
+1 @ StackOverflow, @ PHPNoob1001에 오신 것을 환영합니다. – Sampson