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
Dominator
post
Post #2





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

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: 12.10.2025 - 07:54