Page 1 of 1

include syntax

Posted: Mon Feb 02, 2009 11:07 am
by tat
Hi, I am fairly new to php, can someone please explain to me why the images are not appearing when I look up the code in the browser? I am missing something in the syntax?. Thanks

<body topmargin="0" leftmargin="0">

<table cellpadding="0" cellspacing="0" width="752" class="Top" align="center">
<tr>
<td><img src="<?= INCLUDEPATH ?>Images/pinkbar7.jpg" width="750" height="108"></td>
</tr>
</table>

<table cellpadding="0" cellspacing="0" width="752" class="Middle" align="center">
<tr>
<td><img src="<?= INCLUDEPATH ?>Images/Back1.jpg" width="344"></td>
<td><a href="Index.php"><img src="<?= INCLUDEPATH ?>Images/ButtonHome.gif" border="0" width="69"></a></td>
<td><a href="AboutUs.php"><img src="<?= INCLUDEPATH ?>Images/ButtonAboutUs.gif" border="0" width="88"></a></td>
<td><a href="Login.php"><img src="<?= INCLUDEPATH ?>Images/ButtonLogin.gif" border="0" width="67"></a></td>
<td><img src="<?= INCLUDEPATH ?>Images/Back2.gif" width="14"></td>
</tr>
</table>

<table cellpadding="0" cellspacing="0" width="752" class="Middle" align="center">
<tr>
<form action="Search_Proc.php" method="post">
<td class="Color1"><img src="<?= INCLUDEPATH ?>Images/Back3.gif" width="324" height="32"></td>
<td class="Color1">&nbsp;</td>
<td class="Color1">&nbsp;</td>
<td class="Color1"><img src="<?= INCLUDEPATH ?>Images/SearchKeywords.gif" class="Indented4R" width="83" height="6"></td>
<td class="Color1"><input type="text" class="width Indented4R" name="searchTerm"></td>
<td class="Color1"><input type="image" src="<?= INCLUDEPATH ?>Images/ButtonGo.gif" action="Index.php" class="Indented12R" width="27" height="16"></td>
</form>
</tr>
</table>

Re: include syntax

Posted: Mon Feb 02, 2009 11:11 am
by Apollo
1. See posting guidelines, especially nr. 9 please!

2. Exactly what is this 'INCLUDEPATH' thing supposed to be? It's not defined anywhere, right?

Re: include syntax

Posted: Mon Feb 02, 2009 11:13 am
by mickeyunderscore
This is difficult to answer without knowing what the constant INCLUDEPATH contains.

When I get a broken image, I usually right click it and go to properties and check the exact path that it is looking for the image in.