Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php]switch & switch 2 - ( & ) Podwojny adres! pomocy!
kkingstoun
post
Post #1





Grupa: Zarejestrowani
Postów: 5
Pomógł: 0
Dołączył: 9.11.2007

Ostrzeżenie: (0%)
-----


Witam mam taki problem, ze kompletnie nie mam pojęcia jak to zrobic. Chciałbym stworzyć cos takeigo

index.php?zmienna1=abc&zmienna2=de

BO teraz mam zastosowane 2 switche które wypełniaja mi 2 rozne tabelki. Tylko jestli aktywuje jedna a potem 2 to wraca mi do index.php . Ktos potrafi to zrobic?? Pomocy!! Dokłądnie chodzi mi o ten znaczek & aby to sie dopisywayła i aby powstawal podwójny adress.


Tak wygladaja obydwa switche:

Na stronie
<? include ("coikto.php"); ?>

switch

<?
switch ($_GET['id'])
{
case ("home"):
include ("home.html");
break;

case ("wstep"):
include ("wst.html");
break;

case ("statut"):
include ("stat.html");
break;

case ("historia"):
include ("historia.html");
break;

case ("uczniowie"):
include ("uczniowie.html");
break;

case ("zdjecia"):
include ("zdj.html");
break;

case ("rodzice"):
include ("rod.html");
break;

case ("nauczyciele"):
include ("naucz.html");
break;

case ("euro"):
include ("euro.html");
break;

//( ... )
default:
include ("witaj.html");
}
?>


2 :
Na stronie <? include ("newsy.php"); ?>
switch

<?
switch ($_GET['arch'])
{
case ("2"):
include ("arch2.html");
break;

case ("3"):
include ("arch3.html");
break;

case ("4"):
include ("arch4.html");
break;

case ("4"):
include ("arch4.html");
break;

case ("4"):
include ("arch4.html");
break;

case ("4"):
include ("arch5.html");
break;

case ("5"):
include ("arch5.html");
break;

case ("6"):
include ("arch6.html");
break;

case ("7"):
include ("arch7.html");
break;

case ("8"):
include ("arch9.html");
break;

case ("9"):
include ("arch9.html");
break;

case ("10"):
include ("arch10.html");
break;
//( ... )
default:
include ("news1.html");
}
?>
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 21.08.2025 - 08:29