Jump to content

Recommended Posts

Boolean error

Boolean: $okay = TRUE;

Error received: Parse error: syntax error, unexpected T_VARIABLE

running PHP 5.2.11 on the machine that TM editor uses for a PHP reference.

running MAMP and its PHP Version is 5.2.11 also

Machine: Mac, OS 10.5.8, the machine is up to date as far as updates go as well as the TM editor.

 

$okay = TRUE ; is as basic as it can get.   

Does any one have some words of wisdom with this situation, as to why it would not fly.  :confused:

Thank you

Link to comment
https://forums.phpfreaks.com/topic/183362-boolean-error-unexpected-t_variable/
Share on other sites

Boolean error

Boolean: $okay = TRUE;

Error received: Parse error: syntax error, unexpected T_VARIABLE

running PHP 5.2.11 on the machine that TM editor uses for a PHP reference.

running MAMP and its PHP Version is 5.2.11 also

Machine: Mac, OS 10.5.8, the machine is up to date as far as updates go as well as the TM editor.

 

$okay = TRUE ; is as basic as it can get.   

Does any one have some words of wisdom with this situation, as to why it would not fly.  :confused:

Thank you

 

OKay this is how the story went, this is the same construct, i have the Mac isolated from the net so i wrote this out here.

 

$okay = TRUE;
if (empty($_POST['e_mail'])) {
print '<p> please fill in the form field</p>';
$okay=$false
}

Well if you don't have the exact code its hard to tell you where the syntax error is... but in the code you just posted its on the line

$okay=$false

 

you are missing a semicolon after this line.

 

It would help to see the code ABOVE the line you first posted

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.