Forum Moderators: coopster

Message Too Old, No Replies

Parse error: unexpected T_STRING but where

Parse error: parse error, unexpected T_STRING

         

jack_keenan

5:31 pm on Jan 30, 2006 (gmt 0)

10+ Year Member



Help I keep getting a parsing error but I can't see it am I blind or very stupid, here's the code

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Sendemail Script</title>
</head>
<body>

<!-- Reminder: Add the link for the 'next page' (at the bottom) -->
<!-- Reminder: Change 'YourEmail' to Your real email -->

<?php
if(!$email == "" && (!strstr($email,"@") ¦¦!strstr($email,".")))
{
echo "<h2>Use Back - Enter valid e-mail</h2>\n";
$badinput = "<h2>Feedback was NOT submitted</h2>\n";
}
if(empty($name) ¦¦ empty($email) ) {
echo "<h2>Use Back - fill in all fields marked *</h2>\n";
}
echo $badinput;

$todayis = date("l, F j, Y, g:i a") ;

$message = " $todayis [EST] \n
Attention: $attn \n
Message: $notes \n
From: $name ($email)\n
Additional Info : IP = $ip \n
Browser Info: $httpagent \n
Referral : $httpref \n
";

$from = "From: $email\r\n";

mail("jack@peacockvisualarts.co.uk", $name, $dob, $Address, $postcode, $email, $phone, $camera, $digital, $Sound, $Lighting, $animation, $Editing, $Presenting, $Admin, $Research, $other, $experience, $strengths, $week day, $week ev, $weekend day, $weekend evening, $aspirations, $comments);

?>

<p align="center">
Date: <?php echo $todayis?>
<br />
Thank You : <?php echo $name?> ( <?php echo $email?> )
<br />

<br /><br />
<a href="contact.php"> Next Page </a>
</p>

</body>
</html>

jack_keenan

5:34 pm on Jan 30, 2006 (gmt 0)

10+ Year Member



Sorry I should have said the error is on line 43 the blank line above this one
mail("jack@peacockvisualarts.co.uk", $name, $dob, $Address, $postcode, $email, $phone, $camera, $digital, $Sound, $Lighting, $animation, $Editing, $Presenting, $Admin, $Research, $other, $experience, $strengths, $week day, $week ev, $weekend day, $weekend evening, $aspirations, $comments);

Anyango

7:34 pm on Jan 30, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hey There!

Welcome to WebmasterWorld

your error lies here


$week day, $week ev, $weekend day, $weekend evening

variables names cant have spaces, can they?

;)

jack_keenan

9:56 am on Jan 31, 2006 (gmt 0)

10+ Year Member



Thanks anyago, I'm very much a newbie and still struggling to get to grips with stuff so your help is much appreciated.

Jack