I need to add two variables to my url to make it more secure. But I can't add php in my href.
this is the code:
<php
$token =1;
$email =2;
$body='
<body>
<p>Use the link below to reset your password.</p><br>
<a href="http://localhost/wwi/view/pw_reset.php?token=<?php echo $token?>&email=<?php echo $email?>">Click here</a>
</body>';
but the result I get now is:
http://localhost/wwi/view/pw_reset.php?token=echo$token&email=echo$email
instead of what I need which is:
http://localhost/wwi/view/pw_reset.php?token=1&email=2
It needs to be in the variable $body
because this is used to send an email with phpmailer
.