parsing error


Posted on 16th Feb 2014 07:03 pm by admin

can anyone explain this syntax error:

Parse error: syntax error, unexpected T_IF

The error is occuring at the blank field check ie: if (!$_POST['username]...etc etc

//check if form has been submitted
if (isset($_POST['submit'] {

//check that no fields have been left blank
if (!$_POST['username'] || !$_POST['password'] || !$_POST['email'] || !$_POST['sex'] || !$_POST['day'] || !$_POST['month'] || !$_POST['year'] )
{
die('You have not completed the form');
}
else

No comments posted yet

Your Answer:

Login to answer
317 Like 9 Dislike
Previous forums Next forums
Other forums

Problem with passing variables
I'm not really a php programmer so I'm really struggling with this issue.

I have a banner s

Where is my php.ini???
Hi

First off - apologies - i'm not a coder so this may sound very amateur.

I'm having

Check premium expire
Hi,

I am making a simple file hosting site and want to check if users premium subscriptions h

the problem with str_replace
$str="hahahahahahahahahahahahahaha";
$nn=1;
$str=str_replace('ha','MyGod',$str,$nn);

Help with php code
Hello, can anyone tell me why this php word trap fails to work,
and the trigger words get blow r

Request-URI Too Large
I have created a simple submit form for a mysql database that puts a piece of code into database.<

Procedural to OOP
ohn Kleijn said that to avoid writing "crappy code", we should learn OOP and common OO pri

Firewall / visited websites logger
Hi. I have a firewall implementation and I want to log all the websites visited on the machine. S

Why will this program not run if the variables are not global?
Hey guys I have a kind of perplexing situation that is probably simple, but I can't seem to understa

PHP and Javascript
Hello Everyone,

I have a page that needs a javascript code to be written between PHP code but

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash