FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » HP syntax error, unexpected T_variable
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: HP syntax error, unexpected T_variable [message #179896 is a reply to message #179889] Mon, 17 December 2012 23:51 Go to previous messageGo to previous message
Thomas 'PointedEars'  is currently offline  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>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Gettting values from URL in PHP 5.4
Next Topic: passing values into javascript
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Oct 06 16:19:49 GMT 2024

Total time taken to generate the page: 0.10300 seconds