Parse, Syntax error: unexpected '@' In PHP

I have a small problem with my flash form all works great exept this problem, when I hit submite button it spits out this error

Parse error: syntax error, unexpected '@' in /***/www/***/***/httpdocs/***/processEmail.php on line 10

form it self is same as all the other forms u get with flash template

<?php

$your_company = $_GET[�company�];
$your_name = $_GET[�your_name�];
$your_phone = $_GET[�phone�];
$your_email = $_GET[�email�];
$your_message = $_GET[�message�];


$recipient = �breez@breezdesigns.co.uk�;


$subject = �Someone has submited your form�;


$headers .= �Content-type: text/html; charset=iso-8859-1';

$content = "<html><head><title>Breez Designs Contact Form</title></head><body><br />";
$content .= "Company: <b>" . $your_company . "</b><br />";
$content .= "Name: <b>" . $your_name . "</b><br />";
$content .= "Phone: <b>" . $your_phone . "</b><br />";
$content .= "E-mail: <b>" . $your_email . "</b><br /><hr /><br />";
$content .= $your_message;
$content .= "<br /></body>";


// The mail() function allows you to send mail.
mail($recipient,$subject,$content,$headers);
?>
<html>
<body bgcolor="#282E2C">
<div align="center" style="margin-top:60px;color:#FFFFFF;font-size:11px;
font-family:Tahoma;font-weight:bold">
Your message was sent. Thank you.
</div>
</body>
</html>
<script>resizeTo(300, 300)</script>

and this is my submite buttom code in flash form

on (rollOver)
{
this.gotoAndPlay("s1");
}
on (releaseOutside, rollOut)
{
this.gotoAndPlay("s2");
}
on (release)
{
_parent.t1_2 = "Your full name:";
_parent.t2_2 = "E-mail address:";
_parent.t3_2 = "Your telephone:";
_parent.t4_2 = "Message:";
}
on (release)
{
loadVariablesNum("processEmail.php","_blank","GET");
}

Share this

Related Posts

2 comments

comments
Anonymous
20.5.09 delete

i think its giving you that error because it doesn't recognize the @ thing (the one you put in the email address) and most likely the @ sign is part of the php data type (i think), i don't know how to explain this in php (i mostly work in c++), but try to use these things called escape codes or you can try inserting the ASCII value of the @ sign in there somewhere. Also, try to insert double quotes instead of apostrophes(Bcuz some languages don't take this kind of text as text, but if you apply quotes, it will recognize it as a string. At least that's what i think Confused Confused ). Give that a try. As i said, im not a php programmer so i am not 100% sure it will work.

Reply
avatar
Anonymous
20.5.09 delete

using double quotes parses variables contained in the string e.g if

$var = 'value';
, and

$myvar = "$var";
then

echo $myvar;
would return

value
but if

$myvar = '$var';
(single quotes) it would return

$var
after the script was run.

looking at your script above,

$recipient = �abc@test.com �;

the quotes don't look either like " or ' - change it to

$recipient = 'abc@test.com';

Reply
avatar
There was an error in this gadget