hi ppl,
Right ive use case to link my pages which works perfectly BUT I have a page which when the link is clicked it opens a new window.
Ive used this inside the screenshot page ;
<?php
switch ($page)
{
case "screenshot1" : include "screenshot1.txt";
break;
}
?>
IT works good when i click the screenshot1 link but ive used this html code to make it open in a new window ;
<a href="#" onClick="MyWindow=window.open('screenshots.php page=screenshot1','MyWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=750,height=804'); return false;">ScreenShot 1</a>
The problem is when I click the link the whole of the screenshot page is included in the page e.g
I click screenshot 1 link from the screenshot page, it opens a new window with picture inside, But the screenshot page shows again below the picture ????
Just one more thing what coding would i put so if the page == nothing then show an error message ?? Ive tried to do it but when you go on the site /index.php it shows the error page because page = 0 until you click a link !!
Please can somebody help ! thankyou