WebWork Magazin - Webseiten erstellen lassen, Online Medien, html

Webhoster, Webhosting Provider und Domain registrieren

Home | Registrieren | Einloggen | Suchen | Aktuelles | GSL-Webservice | Suleitec Webhosting
Reparatur-Forum | Elektro forum | Ersatzteilshop Haushalt und Elektronik


Homepage und Webhosting-Forum

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
Benutzername:
Passwort: Passwort vergessen?
Inhalt der Nachricht: Fett | Kursiv | Unterstrichen | Link | Bild | Smiley | Zitat | Zentriert | Quellcode| Kleiner Text
Optionen: Emailbenachrichtigung bei Antworten
 

Die letzten 5 Postings in diesem Thema » Alle anzeigen
von progrookie
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...
von schubbi
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">

Nach oben