jetzt kommt die if abfrege if($user = "der benutzername" AND man kann auch OR oder XOR einsetzen AND bestimmt das alle beide richtig sein müssen OR eins von beiden doch bei XOR mus das entweder das(bei 3 formularen)
if($user = "der benutzername" AND $pw = "passswort")
{
echo"text wenn der benutzer erfolgreich eingeloggt ist";
}
else
{
echo"text wenn dei angaben false waren";
}
?>
script ende ich hoffe das hat anfängern geholfrn
MfG .Nail
This post has been edited 1 time(s), it was last edited by .Nail: 15.11.2007 20:25.
wobei ich glaube das man die eifnachen anführungszeichen nur bei strings benötigt bei so sachen wie integer oder boolean gehts glaub ich auch ohne hab ich jetzt aber ned getestet
If you were enjoying this post and if you keen on reading more interesting stuff then do not hesitate to complete the free sign up.
After the free registration you will gain access to all areas and you will be able to communicate with other artists from all over the world.
In addition you will benefit from our Photoshop and coding section as well as from our huge (hundreds of gigabytes) free resource section where you can find everything you will need to be a successful (web) designer/artist.
Sign up now and enjoy the advantages as a registered member.
(This website will be ad-free after a complete free sign up.)