Jump to content
n0TTT_

Link não liga

Recommended Posts

HappyHippyHippo

onde está a diferença ?

(vou assumir que o "Nick" ficou fora do link devido a problemas de copy-paste)


IRC : sim, é algo que ainda existe >> #p@p

Share this post


Link to post
Share on other sites
n0TTT_
if(mysql_affected_rows($link)==1)
 {
  $mailmessages .= 'Clica no link para confirmares a tua conta:' . "\r\n";
  $mailmessages .= 'http://www.test-n0ttt.uhosti.com/verification.php?var=true&usr='.$_POST['username'] . "\r\n";
  $mailmessages .= 'Dados da tua conta:' . "\r\n";
  $mailmessages .= 'Username:' .$_POST['username'] . "\r\n";
  $mailmessages .= 'Password:' .$pass . "\r\n";
  $mailmessages .= 'Sê bem vindo a comunidade!' . "\r\n";
  send_mail( 'mail',
  $_POST['email'],
  '  Verificação da conta.',
  $mailmessages);

Share this post


Link to post
Share on other sites
n0TTT_

Tentei por assim:

if(mysql_affected_rows($link)==1)
{
$mailmessages .= 'Clica no link para confirmares a tua conta:' . "\r\n";
$mailmessages .= '<a>http://www.test-n0ttt.uhosti.com/verification.php?var=true&usr='.$_POST['username'] .";
				 $mailmessages .= '" </a>' . "\r\n";
$mailmessages .= 'Dados da tua conta:' . "\r\n";
$mailmessages .= 'Username:' .$_POST['username'] . "\r\n";
$mailmessages .= 'Password:' .$pass . "\r\n";
$mailmessages .= 'Sê bem vindo a comunidade!' . "\r\n";
send_mail( 'mail',
 $_POST['email'],
 'Rampage - Verificação da conta.',
 $mailmessages);

O formato no mail fica assim:

Clica no link para confirmares a tua conta:
<a>http://www.test-n0ttt.uhosti.com/verification.php?var=true&usr=Nick
</a>
Dados da tua conta:
Username:Nick
Password:
Sê bem vindo a comunidade!

Mas fica mesma.

Edited by n0TTT_

Share this post


Link to post
Share on other sites
HappyHippyHippo

isso é porque não estás a dizer que estás a enviar HTML

$headers  = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";

Edited by HappyHippyHippo

IRC : sim, é algo que ainda existe >> #p@p

Share this post


Link to post
Share on other sites
I-NOZex

alem disso nao é

<a>http://website.com</a>

isto na pratica é apenas texto como se fosse uma span!

para ter link precisas de:

<a href="http://website.com">http://website.com</a>

Edited by I-NOZex

B2R » Beat2Revolution v3.0b | Regista e divulga-nos

beat2revolution.net

Share this post


Link to post
Share on other sites
N3lson

Tenta colocar assim

$mailmessages .= '<a href="http://www.test-n0ttt.uhosti.com/verification.php?var=true&usr='.$_POST['username'] .'">Link</a>';

Edited by Rui Carlos

You can't do it, kid. But don't worry, my boy. You're not the only one. No one else can do it.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.