Support Forum
Recommended way to output HTML?
Lee H
Coastal New England (USA)
Member
Free Members
Offline
Looking at the default template, all output is returned by functions. If we wanted to output HTML markup (or anything else)... well I'm not sure the best approach.
Do we jump out of php and write the HTML directly? Or do we have to create oodles of functions to return the output? Or should we save the functions output to a variable like $out.= function_that_returns_stuff(); and return $out in the end like the old SP coding?
Your thoughts are appreciated.
you will see we mix jumping out of php for straight html and echo'ing html... really just a preference or amount of html needed... I am getting to where I like to jump out of php and just dump the html... easier to handle indentations...
Visit Cruise Talk Central and Mr Papa's World
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17364
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625