Jump to content

Help me


digi24

Recommended Posts

 <?
$phpself = $_SERVER['PHP_SELF'];
switch($_GET['id']) {

case indx:
include('home.php');
break;
case link:
include('link.php');
break;
case dl:
include('dl.php');
break;


}
echo "<a href=?id=indx>Home</a><br><a href=?id=link>Links</a><br><a href=?id=dl>Downloads</a>";
?>

 

 

im kinda new at this, but the problem, is that i cant get the pages to open where i want.

 

so i guess im doing somthing wrong..

 

http://www.norsandboxcommunity.com/test2/test/  <-- so you can see what i mean, if it helps

Link to comment
Share on other sites

<style type="text/css">
<!--
#apDiv1 {
position:absolute;
left:252px;
top:158px;
width:696px;
height:531px;
z-index:2;
background-color: #000000;
background-image: url(dfsf.jpg);
}
#apDiv2 {
position:absolute;
left:190px;
top:23px;
width:203px;
height:87px;
z-index:2;
}
body {
background-color: #000000;
}
#apDiv3 {
position:absolute;
left:218px;
top:18px;
width:760px;
height:176px;
z-index:2;
}
#apDiv4 {
position:absolute;
left:156px;
top:733px;
width:858px;
height:19px;
z-index:3;
background-color: #333333;
}
a:link {
color: #CCCCCC;
}
.style2 {
color: #666666;
font-weight: bold;
}
#indx {
position:absolute;
left:424px;
top:223px;
width:514px;
height:458px;
z-index:3;
}
#apDiv5 {
position:absolute;
left:172px;
top:251px;
width:67px;
height:368px;
z-index:4;
}
#apDiv6 {
position:absolute;
left:168px;
top:236px;
width:73px;
height:259px;
z-index:4;
}
#mny {
position:absolute;
left:161px;
top:234px;
width:82px;
height:217px;
z-index:4;
}
#apDiv7 {
position:absolute;
left:167px;
top:219px;
width:73px;
height:241px;
z-index:4;
}
#apDiv8 {
position:absolute;
left:56px;
top:166px;
width:142px;
height:35px;
z-index:3;
}
#apDiv9 {
position:absolute;
left:988px;
top:158px;
width:170px;
height:531px;
z-index:3;
background-color: #333333;
}
#apDiv10 {
position:absolute;
left:273px;
top:223px;
width:668px;
height:465px;
z-index:4;
}
#apDiv11 {
position:absolute;
left:49px;
top:702px;
width:1111px;
height:35px;
z-index:5;
background-color: #333333;
}
#apDiv12 {
position:absolute;
left:261px;
top:224px;
width:143px;
height:314px;
z-index:3;
}
#apDiv13 {
position:absolute;
left:218px;
top:219px;
width:508px;
height:398px;
z-index:4;
}
a:visited {
color: #CCCCCC;
}
a:hover {
color: #999999;
}
a:active {
color: #CCCCCC;
}
.style7 {color: #FFFFFF}
-->
</style>
<div id="apDiv1">
  <p> </p>
  <p> </p>
</div>
<div id="apDiv3"><img src="front.jpg" width="760" height="175" border="3"></div>
<div id="apDiv12">
<?
$phpself = $_SERVER['PHP_SELF'];
switch($_GET['id']) {

case indx:
include('home.php');
break;
case link:
include('link.php');
break;
case dl:
include('dl.php');
break;


}
echo "<a href=?id=indx>Home</a><br><a href=?id=link>Links</a><br><a href=?id=dl>Downloads</a>";
?>
</div>

</div>
<p class="style2"> </p>



 

This is how it all looks

Link to comment
Share on other sites

try this:

<style type="text/css">
<!--
#apDiv1 {
position:absolute;
left:252px;
top:158px;
width:696px;
height:531px;
z-index:2;
background-color: #000000;
background-image: url(dfsf.jpg);
}
#apDiv2 {
position:absolute;
left:190px;
top:23px;
width:203px;
height:87px;
z-index:2;
}
body {
background-color: #000000;
}
#apDiv3 {
position:absolute;
left:218px;
top:18px;
width:760px;
height:176px;
z-index:2;
}
#apDiv4 {
position:absolute;
left:156px;
top:733px;
width:858px;
height:19px;
z-index:3;
background-color: #333333;
}
a:link {
color: #CCCCCC;
}
.style2 {
color: #666666;
font-weight: bold;
}
#indx {
position:absolute;
left:424px;
top:223px;
width:514px;
height:458px;
z-index:3;
}
#apDiv5 {
position:absolute;
left:172px;
top:251px;
width:67px;
height:368px;
z-index:4;
}
#apDiv6 {
position:absolute;
left:168px;
top:236px;
width:73px;
height:259px;
z-index:4;
}
#mny {
position:absolute;
left:161px;
top:234px;
width:82px;
height:217px;
z-index:4;
}
#apDiv7 {
position:absolute;
left:167px;
top:219px;
width:73px;
height:241px;
z-index:4;
}
#apDiv8 {
position:absolute;
left:56px;
top:166px;
width:142px;
height:35px;
z-index:3;
}
#apDiv9 {
position:absolute;
left:988px;
top:158px;
width:170px;
height:531px;
z-index:3;
background-color: #333333;
}
#apDiv10 {
position:absolute;
left:273px;
top:223px;
width:668px;
height:465px;
z-index:4;
}
#apDiv11 {
position:absolute;
left:49px;
top:702px;
width:1111px;
height:35px;
z-index:5;
background-color: #333333;
}
#apDiv12 {
position:absolute;
left:300px;
top:224px;
width:143px;
height:314px;
z-index:3;
}
#apDiv13 {
position:absolute;
left:218px;
top:219px;
width:508px;
height:398px;
z-index:4;
}
a:visited {
color: #CCCCCC;
}
a:hover {
color: #999999;
}
a:active {
color: #CCCCCC;
}
.style7 {color: #FFFFFF}
-->
</style>
<div id="apDiv1">
  <p> </p>
  <p> </p>
</div>
<div id="apDiv3"><img src="front.jpg" width="760" height="175" border="3"></div>
<div id="apDiv12">
<?
$phpself = $_SERVER['PHP_SELF'];
switch($_GET['id']) {

case indx:
include('home.php');
break;
case link:
include('link.php');
break;
case dl:
include('dl.php');
break;


}
echo "<a href=?id=indx>Home</a><br><a href=?id=link>Links</a><br><a href=?id=dl>Downloads</a>";
?>
</div>

</div>
<p class="style2"> </p>

 

all I've done is change the left position of apDiv12

Link to comment
Share on other sites

Instead of including, why not use file_get_contents() and output it where required?

 

<?php

$phpself = $_SERVER['PHP_SELF'];
switch($_GET['id']) {

case indx:
$contents = file_get_contents('home.php');
break;
case link:
$contents = file_get_contents('link.php');
break;
case dl:
$contents = file_get_contents('dl.php');
break;

}

echo "<a href=?id=indx>Home</a><br><a href=?id=link>Links</a><br><a href=?id=dl>Downloads</a><br /><br />{$contents}";

?>

Link to comment
Share on other sites

oh right.. sorry. I missunderstood...

Your include clauses are in the wrong place. try this:

<style type="text/css">
<!--
#apDiv1 {
position:absolute;
left:252px;
top:158px;
width:696px;
height:531px;
z-index:2;
background-color: #000000;
background-image: url(dfsf.jpg);
}
#apDiv2 {
position:absolute;
left:190px;
top:23px;
width:203px;
height:87px;
z-index:2;
}
body {
background-color: #000000;
}
#apDiv3 {
position:absolute;
left:218px;
top:18px;
width:760px;
height:176px;
z-index:2;
}
#apDiv4 {
position:absolute;
left:156px;
top:733px;
width:858px;
height:19px;
z-index:3;
background-color: #333333;
}
a:link {
color: #CCCCCC;
}
.style2 {
color: #666666;
font-weight: bold;
}
#indx {
position:absolute;
left:424px;
top:223px;
width:514px;
height:458px;
z-index:3;
}
#apDiv5 {
position:absolute;
left:172px;
top:251px;
width:67px;
height:368px;
z-index:4;
}
#apDiv6 {
position:absolute;
left:168px;
top:236px;
width:73px;
height:259px;
z-index:4;
}
#mny {
position:absolute;
left:161px;
top:234px;
width:82px;
height:217px;
z-index:4;
}
#apDiv7 {
position:absolute;
left:167px;
top:219px;
width:73px;
height:241px;
z-index:4;
}
#apDiv8 {
position:absolute;
left:56px;
top:166px;
width:142px;
height:35px;
z-index:3;
}
#apDiv9 {
position:absolute;
left:988px;
top:158px;
width:170px;
height:531px;
z-index:3;
background-color: #333333;
}
#apDiv10 {
position:absolute;
left:273px;
top:223px;
width:668px;
height:465px;
z-index:4;
}
#apDiv11 {
position:absolute;
left:49px;
top:702px;
width:1111px;
height:35px;
z-index:5;
background-color: #333333;
}
#apDiv12 {
position:absolute;
left:300px;
top:224px;
width:143px;
height:314px;
z-index:3;
}
#apDiv13 {
position:absolute;
left:218px;
top:219px;
width:508px;
height:398px;
z-index:4;
}
a:visited {
color: #CCCCCC;
}
a:hover {
color: #999999;
}
a:active {
color: #CCCCCC;
}
.style7 {color: #FFFFFF}
-->
</style>
<div id="apDiv1">
  <p> </p>
  <p> </p>
</div>
<div id="apDiv3"><img src="front.jpg" width="760" height="175" border="3"></div>
<div id="apDiv12">
<?
$phpself = $_SERVER['PHP_SELF'];

echo "<a href=?id=indx>Home</a><br><a href=?id=link>Links</a><br><a href=?id=dl>Downloads</a>";
?>
</div>

</div>
<p class="style2"><?php
switch($_GET['id']) {

case indx:
include('home.php');
break;
case link:
include('link.php');
break;
case dl:
include('dl.php');
break;


}
?></p>

 

EDIT: Just saw chigley's reply. It might be a better 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.