Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Skrypt z Gilmore'a
Morski_Pies
post
Post #1





Grupa: Zarejestrowani
Postów: 8
Pomógł: 0
Dołączył: 4.01.2005

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


Przypuszczam, że sprawa jest trywialna ale nie znalazłem w sieci odpowiedzi na ten konkretny problem. Skrypt trywialny a nie działa. Wygląda na to jakby przy kolejnej odsłonie skryptu (po wypełnieniu pól) wprowadzone dane nie były przesyłane. Mam błąd w konfiguracji? Windows, Apache2, php5. Pozdrawiam.
  1. <html>
  2. <head>
  3. <title>Listing 10-4</title>
  4. </head>
  5. <body bgcolor=\"#ffffff\" text=\"#000000\" link=\"#cbda74\" vlink=\"#808040\"
  6. alink=\"#808040\">
  7. <?
  8. // all double quotations in $form must be escaped,
  9. // otherwise a parse error will occur
  10. $form = &#092;"
  11. <form action=&#092;"listing10-4.php\" method=\"post\">
  12. <input type=&#092;"hidden\" name=\"seenform\" value=\"y\">
  13. <b>Give us some information!</b><br>
  14. Your Name:<br>
  15. <input  type=&#092;"text\"  name=\"name\"  size=\"20\"  maxlength=\"20\"
  16. value=&#092;"\"><br>
  17. Your Email:<br>
  18. <input  type=&#092;"text\"  name=\"email\"  size=\"20\"  maxlength=\"40\"
  19. value=&#092;"\"><br>
  20. <input type=&#092;"submit\" value=\"subscribe!\">
  21. </form>&#092;";
  22. // If we haven't already seen the form ($seenform passed by hidden
  23. // form value), show the form.
  24. if (!isset($_POST['seenform'])):
  25. print &#092;"$form\"; else :
  26. print &#092;"Hi, $name!. Your email address is $email\"; endif; ?>
  27. </body> </html>



// proszę używać bbcode - DeyV
Go to the top of the page
+Quote Post

Posty w temacie


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: 21.08.2025 - 12:28