Parse errorの対処法について
はじめて質問をさせて頂きます。
個人でWEBのデザインをさせて頂いているものですが、個人のプログラマーの方に開発をお願いしていたのですが、体の不調を訴えてここ数日連絡がとれなくて困ってます。
お客様のコンタクトフォームに以下のようなエラーが出てしまう現象が起きてその対処をどうしたら良いか、どなたかご指示頂けると助かります。宜しくお願いします。
Parse error: syntax error, unexpected '@' in /export/sd209/www/jp/r/e/gmoserver/0/0/********/******.co.jp/contact/index.php on line 9
-------------------------------------以下、index.php-------------------------------------------
<?php
require_once './b2smarty.php';
require_once '../lib/qdmail.php';
$smaty = new b2smarty();
$from_addr = "xxxx@xxxx.co.jp";
$from_name = "xxxxxxxxxx";
$mail_subject = "お問い合わせ";
$error_message = "";
$cmd = isset($_POST['cmd'])?$_POST['cmd']:'';
$data['name'] = isset($_POST['name']) ?trim($_POST['name' ]):'';
$data['rname'] = isset($_POST['rname']) ?trim($_POST['rname' ]):'';
$data['post01'] = isset($_POST['post01']) ?trim($_POST['post01' ]):'';
$data['post02'] = isset($_POST['post02']) ?trim($_POST['post02' ]):'';
$data['pref'] = isset($_POST['pref']) ?trim($_POST['pref' ]):'';
$data['add'] = isset($_POST['add']) ?trim($_POST['add' ]):'';
$data['tel'] = isset($_POST['tel']) ?trim($_POST['tel' ]):'';
$data['fax'] = isset($_POST['fax']) ?trim($_POST['fax' ]):'';
$data['mail'] = isset($_POST['mail']) ?trim($_POST['mail' ]):'';
$data['age'] = isset($_POST['age']) ?trim($_POST['age' ]):'';
$data['ctype'] = isset($_POST['ctype']) ?trim($_POST['ctype' ]):'';
$data['body1'] = isset($_POST['body1']) ?trim($_POST['body1' ]):'';
$data['body2'] = isset($_POST['body2']) ?trim($_POST['body2' ]):'';
$data['body3'] = isset($_POST['body3']) ?trim($_POST['body3' ]):'';
$smaty->assign("data",$data);
switch ($cmd){
case 'send':
$mail_body = $smaty->fetch('./mail.html');
$mail = new Qdmail();
$mail -> from( $from_addr , $from_name );
$mail -> to( $data['mail'] );
$mail -> cc( $from_addr );
$mail -> subject( $mail_subject);
$mail -> text( $mail_body );
$ret = $mail ->send();
$mail_subject02 = $mail_subject . "【" .$data['body1']. "】";
$mail02 = new Qdmail();
$mail02 -> from( $data['mail'] );
$mail02 -> to( $from_addr);
$mail02 -> subject( $mail_subject02);
$mail02 -> text( $mail_body );
$ret = $mail02 ->send();
$template = './thanks.html';
break;
case 'check':
$template = './check.html';
break;
default:
$template = './input.html';
break;
}
$contents = $smaty->fetch($template);
$smaty->assign("contents",$contents);
$smaty->display('./base.html');