Page 1 of 1

Howcome this errors?

Posted: Tue Sep 05, 2006 8:28 pm
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]

Posted: Tue Sep 05, 2006 8:32 pm
by Christopher
You need to put a semicolon at the end of your statements.

Posted: Tue Sep 05, 2006 8:33 pm
by feyd
..and then add some quotes around the latter statement so it's considered a string.