Hi folks,
I'm having a real "Dime Bar" moment! :-/
I have written a small function to display error messages. I can't work out why I have to use a preceeding slash to include my footer.php but not my header.php when they are both in the same directory.
function show_error($my_error)
{
include($script_url . "header.php");
echo "<h2>$my_error</h2>";
echo "<form method='post' action='whatever.php'>";
echo "<p><input type='button' name='back' value='BACK' onclick='history.go(-1)' />";
echo "</form>";
include($script_url . "/footer.php");
exit();
}
I just know it's going to be so simple I will slap myself :-O
Thanks
Zagga