I don't know a whole lot about PHP... what I'm doing is taking the argument passed to a site name like this:
http://www.mysite.com/main.php?page=pics
...and have it read two .htm files on the server and display one on the left and one on the right. If the agument passed is nothing (http://www.mysite.com/main.php), then it loads homer.htm and homel.htm
I don't know PHP very well, but that only works when I go to (http://www.mysite.com/main.php) ... If I set page equal to something, it crashes. Is + not the right thing to use to combine strings in PHP ? I think it's sending 0 to the echopage function.PHP Code:generatetop();
$page=$_GET['page'];
if($page=="")
{
echopage("homel");
}
else
{
echopage($page + "l");
}
generatemiddle();
if($page=="")
{
echopage("homer");
}
else
{
echopage($page + "r");
}
generatebottom();
Warning: fopen("0.htm", "r") - No such file or directory in /usr7/home/spadeapp/public_html/xchange/main.php on line 49
Any ideas ?




Reply With Quote