Howcome this errors?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Abomination
Forum Newbie
Posts: 7
Joined: Tue Sep 05, 2006 8:26 pm

Howcome this errors?

Post by Abomination »

feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]


Howcome this gives me, Error on line 4..


http://virusdotexe.110mb.com/auth.php to see the error.



This is the code

Code: Select all

<?php

$fname=$_POST['firstname']
$lname=$_POST['lastname']
$uname=$_POST['username']
$pass=$_POST['password']


if(($fname=="Donovan")&&($lname=="Burton")&&($uname=="Abomination")&&($pass=="001001001")) {

	header("location:success.html")
}

else {

echo Bad Login Info. Please contact the administrator.
}

?>


Help please.


feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

You need to put a semicolon at the end of your statements.
Last edited by Christopher on Tue Sep 05, 2006 8:34 pm, edited 2 times in total.
(#10850)
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

..and then add some quotes around the latter statement so it's considered a string.
Post Reply