Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP][HTML]Pomocy
-Kilexu-
post
Post #1





Goście







Witam mam taki skrypt:
  1. <center>
  2. <?php
  3. include('config.php');
  4. ?>
  5. <?php
  6. if(isset($_POST['submit'])){
  7.  $_POST['showforum'] = (int)$_POST['showforum'];
  8.  file_put_contents('config.php', '<?php
  9.  $forumlink = "'.$_POST['forumlink'].'";
  10.  $showforum = "'.$_POST['showforum'].'";
  11.  
  12. ?>
  13.  
  14.  
  15. ');
  16. }
  17. else {
  18. ?>
  19. <form action='' method='POST'>
  20. Link do forum:<INPUT TYPE='text' NAME='forumlink' VALUE='<?php echo $forumlink; ?>'><br>
  21. Czy link ma sie pokazywac?<input type='checkbox' name='showforum' value='1'<?php if ((int)$showforum===1) echo ' checked='checked''; ?> /><br>
  22. <input type='submit' name='submit' value='zapisz' />
  23.  
  24. <?php
  25. }
  26. ?></center>

pokaz.php
  1. <?php include 'config.php'; ?>
  2. <?php 
  3. if($showforum == '1')
  4. echo '<a href="'.$forumlink.'" target="_blank">Forum</a> ';
  5. ?>

i tam config.php jeszcze
Otóż cały skrypt działa! Pokazuje i zakrywa wiadomość jak chce tylko chciałbym dorobić do tego By wyświetliło na tej stronie białej po kliknięciu w Zapisz (Zapisano Poprawnie!) jak to zrobić? może ktoś pomoże ;D
Go to the top of the page
+Quote Post

Posty w temacie
- Kilexu   [PHP][HTML]Pomocy   29.06.2008, 15:50:46
- - Qleer   Nie wiem czy zrozumiałem bo napisałeś bardzo ... n...   29.06.2008, 15:55:05
- - Kilexu   Ok thx a jeśli źle to co wpisać?   29.06.2008, 15:58:59
- - Qleer   Cytat(Kilexu @ 29.06.2008, 16:58:59 )...   29.06.2008, 22:40:43


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: 19.08.2025 - 15:48