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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.