Jump to content

PHP Frames not loading second frame


synking

Recommended Posts

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

 

Link to comment
https://forums.phpfreaks.com/topic/148778-php-frames-not-loading-second-frame/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.