synking Posted March 10, 2009 Share Posted March 10, 2009 Hey i have this page that has two frame and i know frames are bad but it makes more sense for what i want to do. But the problem is that my frames are selected with two if statements and they work but only the first statement shows up in the page. not explaining very well here is what i have. <?PHP $win = $_POST['walkos']; $walktype = $_POST['walktype']; $walkemail = $_POST['walkemail']; ?> <html> <head><title>walk thorugh</title></head> <FRAMESET row="70%, *"> <FRAME src="<?php if ((($win == "XP") || ($win == "Vista") || ($win == "2000") || ($win == "98") || ($win == "ME")) && ($walktype == "email")) { echo ("$win/$walkemail.php"); } elseif ((($win == "Mac")) && ($walktype == "email")) { echo ("$win/$walkemail.php"); } elseif ((($win == "XP") || ($win == "Vista") || ($win == "2000") || ($win == "98") || ($win == "ME")) && ($walktype == "dialup")) { echo ("$win/$walktype.php"); } elseif ((($win == "Mac")) && ($walktype == "dialup")) { echo ("$win/$walktype.php"); } else { echo ("invalid selection please go back and choose again <br> \n"); } ?>" frameborder="1" scrolling="auto" name="Walkthorughimage"> <FRAME src="<?php if ((($win == "XP") || ($win == "Vista") || ($win == "2000") || ($win == "98") || ($win == "ME")) && ($walktype == "email")) { include ("text/$win/$walkemail.php"); } elseif ((($win == "Mac")) && ($walktype == "email")) { echo ("text/$win/$walktype.php"); } elseif ((($win == "XP") || ($win == "Vista") || ($win == "2000") || ($win == "98") || ($win == "ME")) && ($walktype == "dialup")) { echo ("text/$win/$walktype.php"); } elseif ((($win == "Mac")) && ($walktype == "dialup")) { echo ("text/$win/$walktype.php"); } else { echo ("invalid selection please go back and choose again <br> \n"); } ?>" scrolling="auto" frameborder="1" name="walkthroughtext"> </FRAMESET> and the page prints this the top frame only Not Found The requested URL /~jking/test/frame/Vista/dialup.php was not found on this server. here is the view source from the page which is why i don't know why this is not working <html> <head><title>walk thorugh</title></head> <FRAMESET row="70%, *"> <FRAME src="Vista/dialup.php" frameborder="1" scrolling="auto" name="Walkthorughimage"> <FRAME src="text/Vista/dialup.php" scrolling="auto" frameborder="1" name="walkthroughtext"> </FRAMESET> </html> i don't know what the problem is. anyone got an idea Quote Link to comment Share on other sites More sharing options...
micah1701 Posted March 10, 2009 Share Posted March 10, 2009 it may just be an HTML problem of absolute paths. trying adding a leading "slash" before your links. instead of: text/$win/$walkemail.php use: /text/$win/$walkemail.php Quote Link to comment Share on other sites More sharing options...
synking Posted March 10, 2009 Author Share Posted March 10, 2009 Thanks for the bit of help but that didn't change anything..... it gives me the error for the first frame that the page does not exsits but the second one does not show up at all. any other suggestions. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.