but it gives me a lot of errors and i can't get them all out.
<form action="" method=post>
<br>
<input type="text" name="aword" size="20">
<br>
<br>
<input type="submit" name="do" value="Enter">
</form> <?php /* #20 */ ?>
<?php
include ('myincludefile.inc');
switch(@$_POST['do'])
{}
mysql_connect($host, $user, $pawr)
mysql_select_db($dbname)
or die ("sorry, could not connect to server, try again later");
$buser=($_POST['aname']);
$bword=($_POST['aword']);
<form method= post>
SELECT $buser WERE looginname
or die ("your username doesn't excist, maybe you need to <a href=register.php>register</a>.");
SELECT $bword WERE wordpass WERE $buser
or die ("you entered the wrong password, please try again");
?>
</form>
<?php
{
header("Location: mainpage.php")
}
?>
i get 2 errors very often:
unexpected T-string (can anyone tell me what this means???)
expected: { or } (but i can't find where i'm going wrong because it says it expects a } at the end of a line, while there is no tag open at that moment)
i know that there is a {} somewere with nothing inside, but php says it's good so i did it.
any help would be really great!
assainator