doubledee Posted August 12, 2011 Share Posted August 12, 2011 Is there a better way to write this line of PHP nested in my HTML?? <?php echo '<link type="text/css" rel="stylesheet" href="' . WEB_ROOT . 'css/main.css" />'; ?> Thanks, Debbie Quote Link to comment https://forums.phpfreaks.com/topic/244565-better-way-to-write-php-nested-in-html/ Share on other sites More sharing options...
phpSensei Posted August 12, 2011 Share Posted August 12, 2011 lol, the opposite? <link type="text/css" rel="stylesheet" href="<?php echo WEB_ROOT; ?>css/main.css" /> Quote Link to comment https://forums.phpfreaks.com/topic/244565-better-way-to-write-php-nested-in-html/#findComment-1256198 Share on other sites More sharing options...
doubledee Posted August 12, 2011 Author Share Posted August 12, 2011 lol, the opposite? <link type="text/css" rel="stylesheet" href="<?php echo WEB_ROOT; ?>css/main.css" /> Oops! I tried something similar earlier and it didn't work. I must have had a few characters out of place?! Thanks. That looks much better!! Debbie Quote Link to comment https://forums.phpfreaks.com/topic/244565-better-way-to-write-php-nested-in-html/#findComment-1256200 Share on other sites More sharing options...
phpSensei Posted August 12, 2011 Share Posted August 12, 2011 Np haha Quote Link to comment https://forums.phpfreaks.com/topic/244565-better-way-to-write-php-nested-in-html/#findComment-1256204 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.