
25-02-2007, 08:29
|
|
|
|
חבר מתאריך: 15.03.05
הודעות: 24
|
|
|
אין לי פרמטר כזה בקובץ
העתקתי לכאן את תוכן הקובץ כך יהייה יותר קל לבדוק היכן צריך להוסיף משהו.
שוב תודה על העזרה.
$subject = 'Results from Contact form int';
// Your email address. This is where the form information will be sent.
$emailadd = 'er@gmail.com';
// Where to redirect after form is processed.
$URL = 'http://www.or-electric.220mb.com/thank_you.htm';
// Makes all fields required. If set to '1' no field can not be empty. If set to '0' any or all fields can be empty.
$req = '0';
// --------------------------Do not edit below this line--------------------------
$text = "Results from form:\n\n";
$space = ' ';
$line = '
';
Foreach ($_POST as $key => $value)
{
If ($req == '1')
{
If ($value == '')
{echo "$key is empty";die;}
}
$j = strlen($key);
If ($j >= 20)
{echo "Name of form element $key cannot be longer than 20 characters";die;}
$j = 20 - $j;
For ($I = 1; $I <= $j; $I++)
{$space .= ' ';}
$value = str_replace('\n', "$line", $value);
$conc = "{$key}:$space{$value}$line";
$text .= $conc;
$space = ' ';
}
Mail($emailadd, $subject, $text, 'From: '.$emailadd.'');
Echo '<META HTTP-EQUIV=Refresh CONTENT="0; URL='.$URL.'">';
?>
</body>
</html>
|