Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP][HTML] Problem z form2mail i formularzem
slupek
post
Post #1





Grupa: Zarejestrowani
Postów: 36
Pomógł: 0
Dołączył: 27.05.2007
Skąd: EPGD

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


Witam, rzecz niby banalna, ale jednak nie działa. NArzędzie obsługujące formularze przestało działać na boo.pl. Namieszałem ostatnio w swoich plikach i nie działają mi formularze kontaktowe. Problem w tym, że mam pole select w formularzu z adresatami:

  1. select name="adresat" size="1">
  2. <option value="costam@costam">szef</option>
  3. <option value="costam@costam, costam@costaml, costam@costaml>Dział bezsensu</option>
  4. </select></font></p>


Ponadto pola OD, TEMAT, TRESC

  1. <?php
  2. /******************************************************************************
  3. * Simple Page Protect                          Version 1.0                     *
  4. * Copyright 2000 Frederic TYNDIUK (FTLS)       All Rights Reserved.            *
  5. * E-Mail: tyndiuk@ftls.org                     Script License: GPL             *
  6. * Created  02/28/2000                          Last Modified 02/28/2000        *
  7. * Scripts Archive at:                          <a href=\"http://www.ftls.org/php/\" target=\"_blank\">http://www.ftls.org/php/</a>        *
  8. *******************************************************************************/
  9. /*******************************************************************************/
  10. // Necessary Variables:
  11.  
  12. // z formularza zczytaj
  13.  
  14.  $od = @$_GET['od'] ;
  15.  
  16.  $temat = @$_GET['temat'] ;
  17.  $tresc = @$_GET['tresc'] ;
  18.  
  19.  
  20.  
  21.  
  22. $TO = @$_GET["adresat"];
  23.    // En: E-Mail of mail recipient.
  24.    // Fr: E-Mail pour l'envoie.
  25.    
  26. $DEFAULT_EXIT_PAGE = "";
  27.    // En: exit page.
  28.    // Fr: page de sortie.
  29.  
  30. // End  Necessary Variables section
  31. /******************************************************************************/
  32.  
  33. $headers  = "From: Anonymous on $SERVER_NAME <$od>\n";
  34. $headers .= "X-Mailler: PHP 3 Form2Mail made by FTLS, <a href=\"http://www.ftls.org/\n";&#092;" target=\"_blank\">http://www.ftls.org/\n";</a>
  35. $subject = $temat ;
  36.  
  37. $message = $tresc  ;
  38.  
  39. while (list($key, $val) = each($HTTP_POST_VARS)) {
  40.    $message .= "$key : $val\n";
  41. }
  42.  
  43. $message .= "\nSent by ".gethostbyaddr($REMOTE_ADDR). " ($REMOTE_ADDR)\n";
  44.  
  45. mail($TO, $subject, $message, $headers);
  46.    // En : Send mail
  47.    // Fr : Envoi du mail
  48.  
  49. if(! $exit_page)
  50.    $exit_page = $DEFAULT_EXIT_PAGE;
  51.  
  52. Header("Location: ".$exit_page);
  53.    // Exit -> $exit_page
  54.  
  55. ?>


Gdzie popełniam błąd?

EDIT: dodam, że skrypt nie generuje żadnych błędów, maile niestety nie dochodzą. Proszę o pomoc.

Ten post edytował slupek 31.01.2009, 11:23:25
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: 30.09.2025 - 10:08