WebWork Magazin - Design, Gestaltung, Online Medien, html

Webhosting Provider Domain

Home | Registrieren | Einloggen | Suchen | Aktuelles | Suleitec Webhosting



Im Homepage und Webhosting-Forum --- need help bei nen include

Scripte und Programme für PHP, MYSQL. Diskussionen zur Programmierung im Web. FRagen zu CMS, Blogsoftware, Shops, Newsletter und vielen weiteren Scripten.

Forum » PHP & MySQL » need help bei nen include Antworten
need help bei nen include
schubbi
Pixelschubser
Threadstarter




Beiträge: 1
Mitglied seit 14.09.2008

also hab da einmal die "index.php"..und wollte dann dort die seite "welcome.php" includen, der text aus "welcome.php" erscheint auch. wenn ich aber eine andere seite verlinke, bleibt der text dort..hab kp warum..könnte mir vllt wer helfen?^^





da is meine index.php^^"



1: 
2: 
3: 
4: 
5: 
6: 
7: 
8: 
9: 
10: 
11: 
12: 
13: 
14: 
15: 
16: 
17: 
18: 
19: 
20: 
21: 
22: 
23: 
24: 
25: 
26: 
27: 
28: 
29: 
30: 
31: 
32: 
33: 
34: 
35: 
36: 
37: 
38: 
39: 
40: 
41: 
42: 
43: 
44: 
45: 
46: 
47: 
48: 
49:
<title>Dr Bressem :P</title>
<link rel="stylesheet" href="style.css">
<div id="layer2" style="width:525px; height:310px; position:absolute; left:230px; top:570px; z-index:1;">
<p class="header3">Content<p><br>



<?php 
	switch ($_GET['action']) {
case "home": include("welcome.php"); break; 
default: include("welcome.php");
} 
?>



<head>
<title>easyNews</title>
<style type="text/css">
 A:link    {color: 75716e; text-decoration: none; }
 A:active  {color: 75716e; text-decoration: none; }
 A:visited {color: 75716e; text-decoration: none; }
 A:hover   {color: #ffffff; text-decoration: underline; }
 BODY      {scrollbar-face-color: #FFFFFF; scrollbar-shadow-color: ; scrollbar-highlight-color: ;
     	    scrollbar-3dlight-color: ; scrollbar-darkshadow-color: ; scrollbar-track-color: #EEEEEE;
     	    scrollbar-arrow-color: #336699}
</style>
</head>
<body style="background-color:; color:#ffffff"><div align="center">
 <table width="98%" border="0" cellspacing="0" cellpadding="1" style="border:0px  solid">

 </table>
 <br />
</div>
</html></div>
<div id="layer2" style="width:175px; height:410px; position:absolute; left:595px; top:275px; z-index:1;">
<p><p class="header3">Main</p>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1" align="left">
  <tr>
<a href="index.php">Home</a><br />
<a href="index.php?action=test">Test</a>
</td>
  </tr>
</table></div>

<div id="layer2" style="width:800; height:600; position:absolute; left0px; top:0; z-index:-1; left:0">
<img src="layout/header.jpg" width="1024" height="600">
</div>
<body background="layout/bg.jpg">

  Profil   E-Mail   Editieren   Zitieren
progrookie
Fachidiot




Beiträge: 128
Mitglied seit 10.10.2003

Du hast glaube ich ein Logikproblem.
Wenn Du deinen Link mit "?action=test" beschreibst und Du bei deinem switch bei "home" und default mit dem gleichen include reagierst, kommt genau dein Problem zum tragen.

Beschreibe dein switch anders...

---

  Profil   E-Mail   Website   Editieren   Zitieren
 

Antworten
Forum » PHP & MySQL » need help bei nen include

Aktuelle Beiträge zur Hilfe im Forum für Homepage - need help bei nen include AntwortenLetztes Posting
Möchte mir gerne ein PHP Forum auf meine Webseite instalieren und bräuchte Hilfe!
in "PHP & MySQL"
27 28.04.2010 15:44 von Paddy_3000
Wie baue ich ein smilie ein und lese den wieder aus aus der datenbank?
in "PHP & MySQL"
27 05.04.2010 21:47 von raiserle
Teile einer datei auslesen
in "PHP & MySQL"
2 16.03.2010 11:49 von Al Blank



Nach oben