I need to call an image from homepage (default.php) and from pages within.
Normally, I use if id='something', but this time I need to say if the page is the default page ...
Be grateful to know how I would name the default page rather than an ID, like this -
if($_GET['id'] == '' OR $_GET['id'] == 0)
{
echo '<img src="images/sept/al.gif" title="We want writers and artists!">';
}
elseif($_GET['id'] >= 1 )
{ echo '<img src="../images/sept/al.gif" title="We want writers and artists!">';
}
Normally, I use if id='something', but this time I need to say if the page is the default page ...
Be grateful to know how I would name the default page rather than an ID, like this -
if($_GET['id'] == '' OR $_GET['id'] == 0)
{
echo '<img src="images/sept/al.gif" title="We want writers and artists!">';
}
elseif($_GET['id'] >= 1 )
{ echo '<img src="../images/sept/al.gif" title="We want writers and artists!">';
}