Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP] Pokazanie informacji po stronie pliku
Dominator
post
Post #1





Grupa: Zarejestrowani
Postów: 565
Pomógł: 15
Dołączył: 11.10.2010

Ostrzeżenie: (20%)
X----


Otóż mam taki problem:
Na stronie np; WyslijZgloszenie.php znajduje sie takie cos:
<form action="Zgloszenie.php" method="post">
<input type="text" name="Nick" value"">
<input type="submit" name="Nick" value"Wyslij Zgloszenie !">
</form>
W międzyczasie na stronie WyslijZgloszenie.php wpisujemy w polu adam, a w pliku zgłoszenie.php wysyła mi normalny mejl z tym wpisanym słowem (adam) ale jest takie cos na stronie Zgloszenie.php ==> header(Location:Dziekujemy.php), co zrobic aby na stronie Dziekujemy.php byl taki napis:

Hej, adam dziekujemy

Pomóżcie
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 3)
lord2105
post
Post #2





Grupa: Zarejestrowani
Postów: 380
Pomógł: 59
Dołączył: 24.04.2010
Skąd: London

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


pokaz plik zgloszenie.php


--------------------
40% rozwiązań znajduje się tutaj.
59,9% tutaj.

Jeśli pomogłem rozwiązać Twój problem wciśnij
Go to the top of the page
+Quote Post
Dominator
post
Post #3





Grupa: Zarejestrowani
Postów: 565
Pomógł: 15
Dołączył: 11.10.2010

Ostrzeżenie: (20%)
X----


<?php
////////////////////////////////////////////////////////////////
// PERFECT //
// ------- //
// PHP E-mail Receive Form Electronic Content Text //
// File: feedback.php //
// Version: 1.8 (April 21, 2008) //
// Description: Processes a web form to read the user input //
// and then send the data to a predefined recipient. You //
// are free to use and modify this script as you like. //
// Instructions: Go to "http://www.centerkey.com/php". //
// License: Public Domain Software //
// //
// Center Key Software * www.centerkey.com * Dem Pilafian //
////////////////////////////////////////////////////////////////

// Configuration Settings
$SendFrom = "costam";
$SendTo = "dokogol";
$SubjectLine = "Restockowa nagroda";
$ThanksURL = "Sucess.php"; //confirmation page

// Build Message Body from Web Form Input
foreach ($_POST as $Field=>$Value)
$MsgBody .= "$Field: $Value\n";
$MsgBody .= "\n" . "\n" .
$_SERVER['REMOTE_ADDR'];
$MsgBody = htmlspecialchars($MsgBody, ENT_NOQUOTES); //make safe

// Send E-Mail and Direct Browser to Confirmation Page
mail($SendTo, $SubjectLine, $MsgBody, "From: $SendFrom");
header("Location: $ThanksURL");
?>
Go to the top of the page
+Quote Post
lord2105
post
Post #4





Grupa: Zarejestrowani
Postów: 380
Pomógł: 59
Dołączył: 24.04.2010
Skąd: London

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


  1. <?php
  2. session_register('send_to');
  3. ////////////////////////////////////////////////////////////////
  4. // PERFECT //
  5. // ------- //
  6. // PHP E-mail Receive Form Electronic Content Text //
  7. // File: feedback.php //
  8. // Version: 1.8 (April 21, 2008) //
  9. // Description: Processes a web form to read the user input //
  10. // and then send the data to a predefined recipient. You //
  11. // are free to use and modify this script as you like. //
  12. // Instructions: Go to "http://www.centerkey.com/php". //
  13. // License: Public Domain Software //
  14. // //
  15. // Center Key Software * www.centerkey.com * Dem Pilafian //
  16. ////////////////////////////////////////////////////////////////
  17.  
  18. // Configuration Settings
  19. $SendFrom = "costam";
  20. $SendTo = "dokogol";
  21. $SubjectLine = "Restockowa nagroda";
  22. $ThanksURL = "Sucess.php"; //confirmation page
  23.  
  24. $_SESSION['send_to'] = $_POST['nie_wiem_jak_nazywa_sie_pole_wiec_wpisz_sam'];
  25.  
  26. // Build Message Body from Web Form Input
  27. foreach ($_POST as $Field=>$Value)
  28. $MsgBody .= "$Field: $Value\n";
  29. $MsgBody .= "\n" . "\n" .
  30. $_SERVER['REMOTE_ADDR'];
  31. $MsgBody = htmlspecialchars($MsgBody, ENT_NOQUOTES); //make safe
  32.  
  33. // Send E-Mail and Direct Browser to Confirmation Page
  34. mail($SendTo, $SubjectLine, $MsgBody, "From: $SendFrom");
  35. header("Location: $ThanksURL");
  36. ?>



a w kolejnym pliku:
  1. echo 'Hej,dzieki'.$_SESSION['send_to'];


--------------------
40% rozwiązań znajduje się tutaj.
59,9% tutaj.

Jeśli pomogłem rozwiązać Twój problem wciśnij
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 Aktualny czas: 22.08.2025 - 01:37