Please help with passing vars to template
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #2
RE: Please help with passing vars to template
(06-01-2016 06:38 AM)typo Wrote:  $height = 240;
$width = 120;
// ...
eval("\$width = \"\$width\";");
eval("\$height = \"\$height\";");
I don't understand the code here (it doesn't really do anything), but a common issue is scoping in PHP.  Try elevating variables into the global scope if it's not showing up (though I don't recommend using the $width/$height names as they may conflict with something else).

My Blog
06-22-2016 05:57 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
RE: Please help with passing vars to template - ZiNgA BuRgA - 06-22-2016 05:57 PM

 Standard Tools
Forum Jump: