Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more - View Single Post - Can't pass user's IP address into email
View Single Post
Old 07-05-2009, 04:04 PM   #3 (permalink)
user24
Junior Member
 
Join Date: Jul 2009
Posts: 24
Default 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.
user24 is offline   Reply With Quote
Sponsored Links