paddyhaig Posted July 9, 2010 Share Posted July 9, 2010 I am not really sure how to phrase this question. What's wrong with this variable? Are some of the characters illegal and do I need to cancel them out. If so, how? $_background_image = "url(../../graphics/graphic.png)"; The above is one of the rules from one of my css rulesets. I link to it as so from the css document. #backdrop { position:absolute; width:970px; height:985px; z-index:0; left:50%; top: -1px; margin-left:-485px; /* background-image: url(../../graphics/graphic.png); */ background-image: <?php echo $_background_image ?>; } Link to comment https://forums.phpfreaks.com/topic/207302-illegal-characters/ Share on other sites More sharing options...
sKunKbad Posted July 9, 2010 Share Posted July 9, 2010 When I run this in php, I don't get any errors: <?php $_background_image = "url(../../graphics/graphic.png)"; echo $_background_image; Link to comment https://forums.phpfreaks.com/topic/207302-illegal-characters/#findComment-1083850 Share on other sites More sharing options...
trq Posted July 10, 2010 Share Posted July 10, 2010 What error are you getting exactly? Link to comment https://forums.phpfreaks.com/topic/207302-illegal-characters/#findComment-1083876 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.