Re: HP syntax error, unexpected T_variable [message #179896 is a reply to message #179889] |
Mon, 17 December 2012 23:51 |
Thomas 'PointedEars'
Messages: 701 Registered: October 2010
Karma:
|
Senior Member |
|
|
Twayne wrote:
> […]
> PHP 5.3.5 on XP Pro SP3+, Apache 2.2 local server.
>
> ------------------------
>
> <?php
> if(isset($_POST['email'])) {
>
> $email_to=me(at)example(dot)com;
^ ^
> /*
> Parse error: syntax error, unexpected T_VARIABLE in
> C:\xampp\htdocs\send.php on line 5
> */
> ...
> ?>
^^
Superfluous and error-prone at the end of a file. Also, there should be a
“}” before it to end the block of the “if” statement.
> ----------------------------
>
> I've also tried it with single/double quotes; no help.
You probably put them in the wrong places or not in pairs.
> I just can NOT figure out what the Syntax error would be.
RTFM before coding might just help.
> [lots of uncommented LOCs]
You can't be serious.
PointedEars
--
Prototype.js was written by people who don't know javascript for people
who don't know javascript. People who don't know javascript are not
the best source of advice on designing systems that use javascript.
-- Richard Cornford, cljs, <f806at$ail$1$8300dec7(at)news(dot)demon(dot)co(dot)uk>
|
|
|