Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP] Dodawanie i usuwanie polecanych
tsdek
post
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
 
Start new topic
Odpowiedzi
tsdek
post
Post #2





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 (IMG:style_emoticons/default/exclamation.gif) !
Go to the top of the page
+Quote Post

Posty w temacie


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: 17.10.2025 - 02:39