futilemonk
Technical User
Hello and thanks to all you brilliant volunteers!
I am not skilled with PHP and I am helping someone with their site. before i copied the site to my server this script worked (it was something similar to a dropdown menu where if you click on ABOUT a list of links would apear below the ABOUT button), but now it does not:
<? if (ereg("/home/sonvalle/public_html/needs/", $PHP_SELF)) { ?><table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr bgcolor="#276332"><td> </td><td width="100%" class="whitenav">» <a href="/needs/donate/" class="whitenav">Donate</a></td></tr>
<tr bgcolor="#276332"><td> </td><td width="100%" class="whitenav">» <a href="/needs/fundraisers/" class="whitenav">Fundraisers</a></td></tr>
<tr bgcolor="#276332"><td> </td><td width="100%" class="whitenav">» <a href="/needs/wish/" class="whitenav">Wish List</a></td></tr>
<tr bgcolor="#276332"><td> </td><td width="100%" class="whitenav">» <a href="/needs/volunteer/" class="whitenav">Volunteer Needs</a></td></tr>
<tr bgcolor="#276332"><td> </td><td width="100%" class="whitenav">» <a href="/needs/waiting/" class="whitenav">Waiting List</a></td></tr>
<tr bgcolor="#276332"><td> </td><td width="100%" class="whitenav"> </td></tr>
</table>
<? } ?>
i tried to replace ereg with preg_match and that doesn't worh either. If any has any clues I will be forever gratefull.
thanks
I am not skilled with PHP and I am helping someone with their site. before i copied the site to my server this script worked (it was something similar to a dropdown menu where if you click on ABOUT a list of links would apear below the ABOUT button), but now it does not:
<? if (ereg("/home/sonvalle/public_html/needs/", $PHP_SELF)) { ?><table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr bgcolor="#276332"><td> </td><td width="100%" class="whitenav">» <a href="/needs/donate/" class="whitenav">Donate</a></td></tr>
<tr bgcolor="#276332"><td> </td><td width="100%" class="whitenav">» <a href="/needs/fundraisers/" class="whitenav">Fundraisers</a></td></tr>
<tr bgcolor="#276332"><td> </td><td width="100%" class="whitenav">» <a href="/needs/wish/" class="whitenav">Wish List</a></td></tr>
<tr bgcolor="#276332"><td> </td><td width="100%" class="whitenav">» <a href="/needs/volunteer/" class="whitenav">Volunteer Needs</a></td></tr>
<tr bgcolor="#276332"><td> </td><td width="100%" class="whitenav">» <a href="/needs/waiting/" class="whitenav">Waiting List</a></td></tr>
<tr bgcolor="#276332"><td> </td><td width="100%" class="whitenav"> </td></tr>
</table>
<? } ?>
i tried to replace ereg with preg_match and that doesn't worh either. If any has any clues I will be forever gratefull.
thanks