login  Naam:   Wachtwoord: 
Registreer je!
 Forum

[Fout?] e-mail

Offline fluxbox - 03/03/2006 09:44
Avatar van fluxboxNieuw lid Hallo, kan er iemand zeggen wat er hier fout is?

  1. <?
  2.  
  3. $contactfield1=$HTTP_GET_VARS["contactfield1"]
  4. $contactfield2=$HTTP_GET_VARS["contactfield2"]
  5. $contactfield3=$HTTP_GET_VARS["contactfield3"]
  6. $contactfield4=$HTTP_GET_VARS["contactfield4"]
  7.  
  8. $email_from = "$contactfield2";
  9. $email_subject = "Info via Website" ;
  10. //$email_txt = "";
  11. $email_to = "info@mijnsite.nl";
  12.  
  13.  
  14.  
  15. $email_message = "Naam: $contactfield1\n
  16. E-mail :$contactfield2 \n
  17. Telefoon :$contactfield3 \n
  18. Bericht : $contactfield4 \n
  19.  
  20. ";
  21.  
  22. mail($email_to, $email_subject, $email_message,$email_from);
  23.  
  24.  
  25. ?>

6 antwoorden

Gesponsorde links
Offline Micron - 03/03/2006 09:53
Avatar van Micron HTML beginner als jij nou vertelt welke fout je krijgt is het voor ons ook wat makkelijker
Offline fluxbox - 03/03/2006 09:54
Avatar van fluxbox Nieuw lid De e-mail komt niet toe... 
Offline Button - 03/03/2006 09:54 (laatste wijziging 03/03/2006 09:55)
Avatar van Button PHP ver gevorderde
  1. $contactfield1=$HTTP_GET_VARS["contactfield1"]
  2. $contactfield2=$HTTP_GET_VARS["contactfield2"]
  3. $contactfield3=$HTTP_GET_VARS["contactfield3"]
  4. $contactfield4=$HTTP_GET_VARS["contactfield4"]


parse error?
vier keer ";" vergeten

edit: je hebt mail toch ingeschakeld in php?
Offline fluxbox - 03/03/2006 10:08
Avatar van fluxbox Nieuw lid Thnx, de e-mail komt wel toe maar...


Naam:
;

E-mail :
;

Telefoon :
;

Bericht :
;
Offline BigBug - 03/03/2006 10:31
Avatar van BigBug PHP expert Hoezo gebruik je HTTP_GET_VARS?

Waarschijnlijk halen deze informatie niks op, en word er een waarde van een ; toegewezen

Als je slim bent gebruik je POST --> Zet in je <form> tags: method="post"

en gebruik $_POST['formuliernaam']; om je waarde op te halen.
Offline Thomas - 03/03/2006 10:32
Avatar van Thomas Moderator HTTP_GET_VARS? Stop je de variabelen en waarden in $_GET?
HTTP_GET_VARS lijkt me verouderd, en misschien kun je beter met $_POST werken.
Gesponsorde links
Dit onderwerp is gesloten.
Actieve forumberichten
© 2002-2024 Sitemasters.be - Regels - Laadtijd: 0.189s