Monkuar Posted March 17, 2012 Share Posted March 17, 2012 This doesn't work: <style type="text/css" media="all">@import url(style/'.$skin.'.css);</style> $skin is = "Sky Blue"; If $skin is = "Sky Blue"; this works: <link rel="stylesheet" type="text/css" href="style/Sky Blue.css"> It's because @IMPORTURL, Is there a php function that wraps a &20 for a space so it works on my $skin? Link to comment https://forums.phpfreaks.com/topic/259095-how-to-add-spaces/ Share on other sites More sharing options...
smerny Posted March 17, 2012 Share Posted March 17, 2012 It's because @IMPORTURL, Is there a php function that wraps a &20 for a space so it works on my $skin? http://php.net/manual/en/function.rawurlencode.php Link to comment https://forums.phpfreaks.com/topic/259095-how-to-add-spaces/#findComment-1328303 Share on other sites More sharing options...
Monkuar Posted March 17, 2012 Author Share Posted March 17, 2012 It's because @IMPORTURL, Is there a php function that wraps a &20 for a space so it works on my $skin? http://php.net/manual/en/function.rawurlencode.php Lifesaver, Thanks bro Solved ! Link to comment https://forums.phpfreaks.com/topic/259095-how-to-add-spaces/#findComment-1328304 Share on other sites More sharing options...
requinix Posted March 17, 2012 Share Posted March 17, 2012 Also url() can be used with quotes. Link to comment https://forums.phpfreaks.com/topic/259095-how-to-add-spaces/#findComment-1328307 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.