Forum Moderators: coopster

Message Too Old, No Replies

Best way to simulate HTML?

         

Shingetsu

3:55 am on Jan 20, 2011 (gmt 0)

10+ Year Member



Hey guys... Up till now I've been using something like this

function contents($alpharoot)
{
if(special conditions) {
special code
} else {
INCLUDE $alpharoot . ".php";
}
}
contents($_GET['alpharoot']);

with alpharoot value.php containing the code I need.
Now I was wondering if there's another way...
And don't suggest "make a page for everything" because mainly I'm experimenting with php simulation, and that's not exactly it XD.

tangor

11:28 am on Jan 20, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



If value.php has all the html you need, what's the query? If it works, move on. Else ask a different question. Sounds like an insert to me...

Welcome to Webmasterworld!

Shingetsu

10:40 pm on Jan 20, 2011 (gmt 0)

10+ Year Member



Haha, it's "alpharoots value".php as in the value of alpharoot, I see it's weird now lol.