synking
03-11-2009, 06:17 PM
hey i am having and issue with frames and php.
I am running to if statements that echo the src for the frame
<?PHP
$win = $_POST['walkos'];
$walktype = $_POST['walktype'];
$walkemail = $_POST['walkemail'];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">
<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>
</html>
but when the page loads only the top frame is shown. any one got any suggestions.
I am running to if statements that echo the src for the frame
<?PHP
$win = $_POST['walkos'];
$walktype = $_POST['walktype'];
$walkemail = $_POST['walkemail'];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">
<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>
</html>
but when the page loads only the top frame is shown. any one got any suggestions.