Re: Can't pass user's IP address into email
To expand on that further, it looks like you were originally outputting the page as html with the PHP code embedded in it. Then you wanted to put the html code into a PHP variable, so you threw some ' characters around the HTML. Once you did that, everything within the ' characters became part of the string and the code between <? and ?> would no longer execute. What I did was take the variable that you wanted to put the value of into the HTML and concatenated it with the string.
|