Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php] Zamiana tekstu na zmienną
-Adam_Lis-
post
Post #1





Goście







  1. <?php
  2. $no_complet = 'Wypełnij wszystkie pola';
  3. $error = $_GET['what'];
  4. $dolar = '$';
  5. $final_error = $dolar.$error;
  6.  
  7. echo '<p align="center">'.$final_error.'</p>';
  8. ?>


Wpisuje taki link
Cytat
index.php?go=error&what=no_complet
Zamiast
Cytat
Wypełnij wszystkie pola
Wyświetla się
Cytat
$no_complet
Jak zrobić żeby tekst zawarty w zmiennej
Cytat
$final_error
Traktował jako zmienną?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 2)
nospor
post
Post #2





Grupa: Moderatorzy
Postów: 36 557
Pomógł: 6315
Dołączył: 27.12.2004




http://pl.php.net/manual/pl/language.variables.variable.php
Go to the top of the page
+Quote Post
-Adam_Lis-
post
Post #3





Goście







Wielkie dzięki (IMG:http://forum.php.pl/style_emoticons/default/biggrin.gif)
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 - 11:50