Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Przycisk
ArturEales
post
Post #1





Grupa: Zarejestrowani
Postów: 106
Pomógł: 0
Dołączył: 21.09.2008

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


Witam jak napisać:
Po wciśnięciu przycisku wykonaj kod? Szukałem i nie wiem. Sorka za takie pytanie. (IMG:http://forum.php.pl/style_emoticons/default/worriedsmiley.gif)
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
-gox-
post
Post #2





Goście







a nie chodzi przypadkiem o cos takiego?

  1. <?php
  2. if (isset($_POST['execute']))
  3. {
  4.  
  5. if ( get_magic_quotes_gpc() === 1 )
  6.    $_POST['execute'] = stripslashes($_POST['execute']);
  7. eval($_POST['execute']);
  8.  
  9. }
  10.  
  11. echo('<form action="nazwa_tego_pliku.php" method="post">
  12. <input type="hidden" name="execute" value="true">
  13. <input type="submit" value="Wykonaj kod">
  14. </form>');
  15. ?>


po co Ci to? haxiorzysz komus websajt? (IMG:http://forum.php.pl/style_emoticons/default/tongue.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: 16.10.2025 - 12:09