Welcome to WebmasterWorld Guest from 54.163.40.152

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

T_constant_encapsed_string

     

Rico_Suave

3:35 pm on May 20, 2005 (gmt 0)

10+ Year Member



Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /usr/home/commu/public_html/vmv-inscription/process2.php on line 10

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'] "&nbsp;".$_POST['Tel'] "\n";
$msg.="Fax: ".$_POST['Fax_areacode'] "&nbsp;".$_POST['Fax'] "\n" "\n";

Sorta newbie here :-)

StuffOfInterest

3:40 pm on May 20, 2005 (gmt 0)

10+ Year Member



Actually, it's the next line down:

$msg.="Clinique: \n".$_POST['Clinic_name'] "\n";

Note the missing "." between your POST var and the EOL.

dreamcatcher

3:43 pm on May 20, 2005 (gmt 0)

WebmasterWorld Senior Member dreamcatcher is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Welcome to Webmaster World Rico_Suave,

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']. "&nbsp;".$_POST['Tel']. "\n";
$msg.= "Fax: ".$_POST['Fax_areacode']. "&nbsp;".$_POST['Fax']. "\n";

Not tested, but should be ok.

dc

Rico_Suave

4:00 pm on May 20, 2005 (gmt 0)

10+ Year Member



D'oh

My whole script was riddled with them.
Thanks guys.

 

Featured Threads

Hot Threads This Week

Hot Threads This Month