Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Przesłaniu parametru do innej podstrony
Zielonkawy18
post
Post #1





Grupa: Zarejestrowani
Postów: 152
Pomógł: 4
Dołączył: 4.10.2012

Ostrzeżenie: (10%)
X----


  1. header("Location: index.php?show=29")


Dodatkowo chciałbym przesłać date ( zmienną czyli mojego stringa)

index.php?show=29&zmienna w hrefie działa, Tutaj nie mogę się z tym uporać (IMG:style_emoticons/default/smile.gif)
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 4)
s1518
post
Post #2





Grupa: Zarejestrowani
Postów: 22
Pomógł: 4
Dołączył: 3.12.2012

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


Jeśli metoda GET chcesz przeslac to w linku:
  1. header("Location: index.php?show=29&data=08.12.2012");

zczytywanie na stronie do ktorej prowadzi link:
  1. echo $_GET['data'];
Go to the top of the page
+Quote Post
Zielonkawy18
post
Post #3





Grupa: Zarejestrowani
Postów: 152
Pomógł: 4
Dołączył: 4.10.2012

Ostrzeżenie: (10%)
X----


Wiem, to wiem, ale w tym header-że

header("Location: index.php?show=9& i tutaj jakos moja zmienna $dataStart ale nie wiem jak to tu ulokować :-)
Go to the top of the page
+Quote Post
s1518
post
Post #4





Grupa: Zarejestrowani
Postów: 22
Pomógł: 4
Dołączył: 3.12.2012

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


  1. header('Location: index.php?show=9&data='.$dataStart);
czyli łączenie zmiennych ze stringami
Go to the top of the page
+Quote Post
d3ut3r
post
Post #5





Grupa: Zarejestrowani
Postów: 709
Pomógł: 176
Dołączył: 24.10.2010

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


  1. header('Location: index.php?show=29&data='.urlencode($dataStart));


O to chodzi ?
Go to the top of the page
+Quote Post

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

 



RSS Aktualny czas: 22.08.2025 - 22:17