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

317 Like 9 Dislike
Previous php-forum Next php-forum
Other php-forum

PHP5/Zend 2.0 - Resources
PHP5 Snapshots
http://snaps.php.net/

ZEND 2.0 Feature Overview and Design (PDF File

Install page
How do I make it so when a user submits information on the Install page, it'll right it into the cor

Trying to add functions to table
I have this list of characters and I'm trying to figure out what I have to do to put the results of

Parse Error
Hi Guys,

I have a function in my class which returns a string link variable. The problem is i

making web pages for accounts
Hello, I would like to make pages for accounts on my website im making (its not a real website..im j

Convert array to string and write to csv file
I am looking to write a MySQL query to a csv file.

At the minute I:

check for the orig

SQL Injection
In my attempts to protect my database from mySQL injection I have created another problem for myself

undefined offset help
Hi All,

I kept getting undefined offset PHP notice for a simple for loop. For eg
$va = arr

Stopped working!
So I had to change some stuff, none of it major. Stuff like the extension_dir and such. BEFORE I did

Prevent PHP mail( ) from appending hostname to from address
Hey guys,

I want to be able to send texts to phones via email (since each phone has their own

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