Forum Moderators: coopster
This is the code. Line 10 is the first $msg.= line
<?php
if ($_SERVER['REQUEST_METHOD']=="POST"){
// In testing, if you get an Bad referer error
// comment out or remove the next three lines
if (strpos($_SERVER['HTTP_REFERER'], $_SERVER['HTTP_HOST'])>7 ¦¦
!strpos($_SERVER['HTTP_REFERER'], $_SERVER['HTTP_HOST']))
die("Bad referer");
// Start message
$msg="L'usager suivant a soumis une requête pour faire installer le programme: \n";
$msg.="Clinique: \n".$_POST['Clinic_name'] "\n";
$msg.=.$_POST['Clinic_address'] "\n";
$msg.=.$_POST['Clinic_city'] "\n";
$msg.=.$_POST['Clinic_province'] "\n";
$msg.=.$_POST['Clinic_postalcode'] "\n";
$msg.="Tel: ".$_POST['Tel_areacode'] " ".$_POST['Tel'] "\n";
$msg.="Fax: ".$_POST['Fax_areacode'] " ".$_POST['Fax'] "\n" "\n";
Sorta newbie here :-)
Looks like a few missing concatenation operators.
Try this:
$msg="L'usager suivant a soumis une requête pour faire installer le programme: \n";
$msg.="Clinique: ".$_POST['Clinic_name']. "\n";
$msg.= $_POST['Clinic_address']. "\n";
$msg.= $_POST['Clinic_city']. "\n";
$msg.= $_POST['Clinic_province']. "\n";
$msg.= $_POST['Clinic_postalcode']. "\n";
$msg.= "Tel: ".$_POST['Tel_areacode']. " ".$_POST['Tel']. "\n";
$msg.= "Fax: ".$_POST['Fax_areacode']. " ".$_POST['Fax']. "\n";
Not tested, but should be ok.
dc