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

Did you know?Explore Trending and Topic pages for more stories like this.
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

Beginner question regarding Array's
Hi everyone, the page im working on has an array of variable at the top...

Code: $define_li

NOOB needs help with upload file
The intent of this form is to create a folder for a client and upload an image into another folder '

re calling a function without including file
Hi,
i am new to programming in php, i was just checking the wordpress code and found out in the w

convert pps to wsf with php'how?
hi
i want to convert with php
PowerPoint file to swf file(flash)
how please?
thank!!!

PHP & MS Access - Line Break
Hey Guys!

I'm pulling records from an MS Access database and listing them using PHP and I'm r

Please Help my PHP Dating Function.
Hi everyone!

Well here is my code that displays this:

It works wonderful.


$variable $variables type question
I need to be able to designate an array element dynamically, so I thought to use a variable variable

help with database debug pls
Parse error: syntax error, unexpected T_ELSE in /home/content/m/e/s/mesick/html/students/05/php/chec

Batch Session SM35 stuck in status 'in Background
Hi Experts,

I am facing a problem with Batch Input session SM35.

The batch se

How could I do this?
Ive got a simple lottery game, and am using an sql database to keep track of the numbers bought. 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