Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: [PHP] Pokazanie informacji po stronie pliku
Forum PHP.pl > Forum > Przedszkole
Dominator
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
lord2105
pokaz plik zgloszenie.php
Dominator
<?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");
?>
lord2105
  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'];
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.