Hi all,
Got a problem here that I know is SO simple to solve, but for the life of me can't see the wood for the trees (so tired!) and after so much mucking about, I thought I'd ask one of you - you will probably spot it right away and I'll find myself kicking myself 😉
Anyway, I have this very simply contact form I have done for a Brazilian friend, and it all works, except it does not grab the first 3 lines (1 static text, and 2 text fields) but instead just gives me a "0" in the email in place of them! This is the script:
<?php
include "config.php";
$subject = "Download Registro";
$downloadurl = "download1.php";
$email = "me@me.comuk"
if(!isset($nome)) {
header("location: $url");
exit();
}
$emailtext = "
Download Registro:-
Nome Completo:- ".$nome."
E-mail:- ".$e-mail."
Você pertence à RCC?:- ".$rcc."
Faz parte de que grupo de oração?:- ".$grupo." \n
É servo em algum grupo?:- ".$servo."
Já usou o CPGO?:- ".$cpgo."
Se sim, o que achou?:- ".$que."
Dê sugestões ou reclamações sobre o programa ou sobre o site:- \n".$sugestoes."
Deseja receber informações sobre atualizações do CPGO, através do e-mail?:- ".$receber."
";
$subject = stripslashes($subject);
$emailtext = stripslashes($emailtext);
@mail("$email", $subject, $emailtext, "From: $email");
header("Location: $downloadurl");
exit;
?>
...I have made sure I have the correct fields in my html, and have even stripped out all error checking etc - I am baffled as to why my email response is like so (note the "0" where two text fields would be - name & e-mail, as well as a static "this is the response" line)
Você pertence à RCC?:- Sim
Faz parte de que grupo de oração?:- Test
É servo em algum grupo?:- Sim
Já usou o CPGO?:- Sim
Se sim, o que achou?:- Ruim
Dê sugestões ou reclamações sobre o programa ou sobre o site:-
Test
Deseja receber informações sobre atualizações do CPGO, através do e-mail?:-
Sim
Any help appreciated,
Jonathen