Re[6]: [PHP] Newbie seeks urgent help
| From: | Luc | Date: | Sat, 14 Jul 2007 04:11:29 +0000 |
| Subject: | Re[6]: [PHP] Newbie seeks urgent help | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-258837@lists.php.net to get a copy of this message | ||
Hello Tijnema,
Friday, July 13, 2007, 10:45:48 PM, you wrote:
> You must have some unclosed single quote ( ' ) somewhere, on one of
> these lines probably:
> $youremail =
> $websitetitle =
> $thankyoupage =
Found the problem :-)
in the block:
$body =<<<EOB
Empresa: $_POST[empresa_name]
Contato: $_POST[contato_name]
Fone: $_POST[fone]
Fax: $_POST[fax]
Email: $_POST[email]
Produto: $_POST[produto]
Origem: $_POST[origem]
Destino: $_POST[destino]
Quantidade: $_POST[quantidade]
Peso: $_POST[peso]
Comprimento: $_POST[comprimento]
Altura: $_POST[altura]
Largura: $_POST[largura]
EOB;
i had the names between [ ] with a " ' ', so i removed the " ' " and
it worked.
Now i still have 2 problems:
1) the email of the sender is left blank:
Empresa: LUC
Contato: LUC
Fone: 909
Fax: 90°0
Email:
Produto: UIOU
Origem: IUIIO
Destino: IIOP
Quantidade: OIOIOP
Peso: IPOIOP
Comprimento: OIOI
Altura: POIIPO
Largura: IPOO
2) the return mail to the sender also leaves his name blank:
Obrigado por nos contatar,"here should be the name of the contact" . Recebemos sua
mensagem e entraremos em contato em breve
--
Best regards,
Luc