bobert5696 Posted July 28, 2008 Share Posted July 28, 2008 can this be done? : <?php $var = "Hi"; ?> html code and stuff here <?php echo $var ?> i am trying to do something like this, but i cannot get it to work, if this doesnt work is there anything else similar that would work? thanks Link to comment https://forums.phpfreaks.com/topic/117052-solved-splitting-code-in-2-sections/ Share on other sites More sharing options...
DarkWater Posted July 28, 2008 Share Posted July 28, 2008 Yes, it works. Link to comment https://forums.phpfreaks.com/topic/117052-solved-splitting-code-in-2-sections/#findComment-602031 Share on other sites More sharing options...
jake2891 Posted July 28, 2008 Share Posted July 28, 2008 Not 100% sure what you want but. If im thinking correctly yes that can be done very easily. <?php $var = "Hi"; ?> <html> head, body etc goes there too. <table><tr><td><?php echo $var; ?></td></tr></table> </html> Is that what you were after? Link to comment https://forums.phpfreaks.com/topic/117052-solved-splitting-code-in-2-sections/#findComment-602033 Share on other sites More sharing options...
bobert5696 Posted July 28, 2008 Author Share Posted July 28, 2008 thanks, i had a typo in my variable causing it not to work thanks again for the quick reply Link to comment https://forums.phpfreaks.com/topic/117052-solved-splitting-code-in-2-sections/#findComment-602035 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.