I've built a bunch of pages like this in asp
<%
Select case "FORM"
case "whatever"
%>
lot's of html
<% case "this" %>
lot's more html
<% case else%>
last of html
<%end select%>
Is it possible to break out a switch statement in PHP? If not how do you deal with all the html. I would not have to re-type everthing using the
echo"<table width=\"100\">"; instead.
It just seems that there has to be a better way to deal with HTML in php apps. I would be of no use to use a Editor like Dreamweaver then. Unless i just answered my own darn question using includes. But even then if you want to update one page you would have to find the correct include and then change that. And if you had like ten includes and where doing a overhaul of some kind that would be a pain.
rizza
Confused a little??? I know i am???
<%
Select case "FORM"
case "whatever"
%>
lot's of html
<% case "this" %>
lot's more html
<% case else%>
last of html
<%end select%>
Is it possible to break out a switch statement in PHP? If not how do you deal with all the html. I would not have to re-type everthing using the
echo"<table width=\"100\">"; instead.
It just seems that there has to be a better way to deal with HTML in php apps. I would be of no use to use a Editor like Dreamweaver then. Unless i just answered my own darn question using includes. But even then if you want to update one page you would have to find the correct include and then change that. And if you had like ten includes and where doing a overhaul of some kind that would be a pain.
rizza
Confused a little??? I know i am???