Hallo,
Ich habe in meinem Script folgendes Problem,
ich möchte, das wenn ich per GET einen Befehl gebe eine Bestimmte Datei includieren.
Also Dachte ich, mach ich eine If abfrage aber hier gibt es ein Problem:
Falls das jemand Lösen könnte wäre ich sehr dankbar!
Ich habe in meinem Script folgendes Problem,
ich möchte, das wenn ich per GET einen Befehl gebe eine Bestimmte Datei includieren.
Also Dachte ich, mach ich eine If abfrage aber hier gibt es ein Problem:
PHP:
<?php
if ($_GET["content"] = "games")
{
include '/textarea/games.html';
}
elseif ($_GET["content"] = "programs")
{
include '/textarea/programs.html';
}
elseif ($_GET["content"] = "scripte")
{
include '/textarea/scripte.html';
}
elseif ($_GET["content"] = "about")
{
include '/textarea/about.html';
}
elseif ($_GET["content"] = "press")
{
include '/textarea/press.html';
}
else
{
include '/textarea/content.html';
}
?>