How would I just change certain bits on a page…?
My pages are all the same, so I only want to change the stuff in the main content box on my site.
[code]<?php
if (!isset($_GET[‘type’]))
{
##main page##
}
else if ( $type == ‘page1’ )
{
##content 1##
}
else if ( $type == ‘page2’ )
{
##content 2##
}
else if ( $type == ‘page3’ )
{
##content 3##
} else {
header(‘location: http://www.website.com’);
}
?>[/code]
So how would I have it to that in my main page I have something like ‘$content’
and then later on it defines the content ‘$content = CONTENT HERE = main?type=page1’
Thanks.