We might be crossing wires here - the page that sends the mail link to the user is working great but I was considering getting the memid mailed to me on the link page with other information (which is coming through fine).
The error is:
Line 2939 is:
PHP:
$message = "'$_SESSION['memid']'";
I tried it as a few things but with no success. Any ideas?
_Thanks
You need to inspect the code more carefully on page 1 of this post.
In order for a variable to be printed within the message, you need to break the code up with stops.
i.e.
PHP:
$message= '
some normal html text without any single quotes but can include double quotes'.$variable.' more normal text';
alternatively, you can use double quotes but in the following format.
PHP:
$message= "
some normal html text without any double quotes but can include single quotes".$variable." more normal text";
As you can see, the double quote stops the content before the variable. The stop adds something after to the previous content. The stop after the variable adds more content. The the opening double quotes continues the normal content.
In this way, you can mix multiple variables and standard html. Just be careful of the type of quotes.
PHP:
$message = "variable 1:".$_SESSION['memid']."<br>variable 2:".$anothervariable."<br><table><tr><td> </td></tr></table>";