Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [PHP] Dodawanie i usuwanie polecanych
tsdek
post 16.05.2011, 12:26:40
Post #1





Grupa: Zarejestrowani
Postów: 9
Pomógł: 0
Dołączył: 16.05.2011

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


Cześć, jestem tsdek, koduję galerię fotograficzną, wszystko ładnie pięknie, ale mam problem z dodawaniem i usuwaniem polecanych(Panel Administratora), posiadam swój własny panel administratora, bo jak wpisuje zeby dodalo to nie dodaje i w dodatku nie ma tego w panelu ;/ może ktoś pomóc?
Go to the top of the page
+Quote Post
nospor
post 16.05.2011, 12:28:39
Post #2





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




Super opisany problem....

Temat: Jak poprawnie zada pytanie
Zapoznaj się z tym temate. Zastosuj się do każdego z punktów

Dokładnie przeczytaj też to:
http://rtfm.killfile.pl/
skoro nie potrafisz na forum zadać normalnie pytania.


--------------------

"Myśl, myśl, myśl..." - Kubuś Puchatek || "Manual, manual, manual..." - Kubuś Programista
"Szukaj, szukaj, szukaj..." - Kubuś Odkrywca || "Debuguj, debuguj, debuguj..." - Kubuś Developer

Go to the top of the page
+Quote Post
tsdek
post 18.05.2011, 10:49:48
Post #3





Grupa: Zarejestrowani
Postów: 9
Pomógł: 0
Dołączył: 16.05.2011

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


Tu jest kod:

  1. <?php
  2. print '<center>';
  3. if(isset($_POST['file'])) file_put_contents('../inc/polec.php',stripslashes($_POST['file']));
  4. $file = file_get_contents('../inc/polec.php');
  5. echo '<form method="POST"><textarea style="width: 250px; height: 30px" name="file">'.$file.'</textarea><br><input type="submit" value="Dodaj polecanego" /></form>';
  6. print '</center>';
  7. ?>
  8.  
  9. <?php
  10. print '<center>';
  11. if(isset($_POST['file'])) file_put_contents('../inc/polec.php',stripslashes($_POST['file']));
  12. $file = file_get_contents('../inc/polec.php');
  13. echo '<form method="POST"><textarea style="width: 250px; height: 30px" name="file">'.$file.'</textarea><br><input type="submit" value="Usun polecanego" /></form>';
  14. print '</center>';
  15. ?>


%REFRESH exclamation.gif!
Go to the top of the page
+Quote Post

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 Wersja Lo-Fi Aktualny czas: 16.07.2025 - 07:24