Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [php][php-fusion][wtyczka], Czy serwer może nie obsługiwać METHOD="POST"?
Earth
post 9.12.2006, 15:40:21
Post #1





Grupa: Zarejestrowani
Postów: 169
Pomógł: 2
Dołączył: 6.12.2006

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


Przygotowywuje wtyczkę do CMS php-fusion.


  1. <?php
  2. /*---------------------------------------------------+
  3. | php-Fusion 6 Content Management System
  4. +----------------------------------------------------+
  5. | Copyright Š 2002 - 2005 Nick Jones
  6. | <a href="http://www.php-fusion.co.uk/" target="_blank">http://www.php-fusion.co.uk/</a>
  7. +----------------------------------------------------+
  8. | Released under the terms & conditions of v2 of the
  9. | GNU General Public License. For details refer to
  10. | the included gpl.txt file or visit <a href="http://gnu.org" target="_blank">http://gnu.org</a>
  11. +----------------------------------------------------*/
  12. require_once "../../maincore.php";
  13. require_once BASEDIR."subheader.php";
  14. require_once BASEDIR."side_left.php";
  15.  
  16. if ($_GET['Form'] == 'YES') {
  17. $get = $_GET['Form'];
  18. $post = $_POST['Form'];
  19. echo ("GET = $get; POST = $post");
  20. } else {
  21.  
  22. echo ('<form>
  23. <FORM METHOD="post" ACTION="zapis.php">
  24. Nick:<BR>
  25. <input type="text" name="nick" size="30" maxlength="20"/><BR>
  26. E-mail:<BR>
  27. <input type="text" name="mail" size="30" maxlength="30" /><BR>
  28. GG:<BR>
  29. <input type="text" name="gg" size="8" maxlength="7" /><BR>
  30.  
  31. <TABLE><TR><TD>
  32. Hasło:<BR>
  33. <input type="password" name="kod" size="12" maxlength="8" />
  34. </TD><TD>
  35. Powtórz hasło:<BR>
  36. <input type="password" name="kod2" size="12" maxlength="8" /><BR>
  37. </TD></TR></TABLE>
  38.  
  39. <input type="checkbox" name="dane_osob" value="tak" DISABLED CHECKED />
  40. Wyrażam zgodę na przetwarzanie moich danych osobowych<BR>
  41. <input type="checkbox" name="regulamin" value="tak" DISABLED CHECKED />
  42. Akceptuje Regulamin<BR>
  43.  
  44. <input type="submit" name="Form" value="YES" />
  45. <form>');
  46. }
  47.  
  48.  
  49. require_once BASEDIR."side_right.php";
  50. require_once BASEDIR."footer.php";
  51. ?>


http://nfs-pl.ovh.org/infusions/nfs_racer_u2/zapis.php

Po kliknięciu w yes skrypt zachowuje się jak by "post" to "get".
Wystarczy popatrzeć na link na górze i popatrzyć na drugą stronę skryptu.

Czy to możliwe żeby serwer nie obsługiwał METHOD="post"?
Go to the top of the page
+Quote Post
kipero
post 9.12.2006, 16:09:19
Post #2





Grupa: Zarejestrowani
Postów: 233
Pomógł: 50
Dołączył: 28.10.2006
Skąd: Radom

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


  1. <?php
  2. if ($_GET['Form'] == 'YES') {
  3. $get = $_GET['Form'];
  4. $post = $_POST['Form'];
  5. echo ("GET = $get; POST = $post");
  6. } else {
  7. ?>

A jak byś to zamienił na:
  1. <?php
  2. if ($_POST['Form'] == 'YES') {
  3. $get = $_GET['Form'];
  4. $post = $_POST['Form'];
  5. echo ("GET = $get; POST = $post");
  6. } else {
  7. ?>

Powinno działać


--------------------
Go to the top of the page
+Quote Post
Earth
post 9.12.2006, 16:17:39
Post #3





Grupa: Zarejestrowani
Postów: 169
Pomógł: 2
Dołączył: 6.12.2006

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


To nie pomoże.

Wystarczy popatrzeć na link. O ile mi wiadomo to przy post powinno być widoczne:

skrypt.php

a nie:

skrypt.php?new=sdsd&hasło=12354

Skrypt jest wrzucony na serwer ovh na darmowe konto.

Ten post edytował Earth 9.12.2006, 21:57:31
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: 14.07.2025 - 01:22