Sie sind nicht angemeldet.

anarkcorp

Anfänger

  • »anarkcorp« ist der Autor dieses Themas

Beiträge: 3

Beruf: Schlosser

Level: 16 [?]

Erfahrungspunkte: 7 691

Nächstes Level: 10 000

  • Nachricht senden

1

Sonntag, 12. Juni 2011, 21:23

Problem mit PHP Login

Hey.

Also ich hab mir nen kleinen PHP Login ausm I-Net kopiert.

Das funktioniert auch wunderbar.
Das Problem ist, ich kann nur einen user definieren:

PHP-Quelltext

1
2
if ($username == 'user1' && $passwort == 'pw1') {
       $_SESSION['angemeldet'] = true;

Habe es einfach mal so probiert:

PHP-Quelltext

1
2
3
if ($username == 'user1' && $passwort == 'pw1') {
      or ($username == 'user2' && $passwort == 'pw2') {
       $_SESSION['angemeldet'] = true;

Aber da kommt nur:

Zitat

Parse error: syntax error, unexpected T_LOGICAL_OR in /XXXXXXX/login.php on line 13

Kenne mich mit PHP so garnicht aus, also wäre nice wenn jemand ne Lösung hätte.

ICH WEISS! dass man es auch per MySQL Datenbank machen kann!
Aber gerade das will ich NICHT.
Es soll nur ein ganz simpler PHP Login werden.

Das hier ist der Code den ich c&p'ed habe:
http://aktuell.de.selfhtml.org/artikel/php/loginsystem/

Frank1604

unregistriert

2

Montag, 13. Juni 2011, 23:47

"if ($username == 'user1' && $passwort == 'pw1') { or ($username == 'user2' && $passwort == 'pw2') { $_SESSION['angemeldet'] = true;"

Nee, das macht keinen Sinn. Versuch es mal so:

PHP-Quelltext

1
2
3
4
if ($username == 'user1' && $passwort == 'pw1') or ($username == 'user2' && $passwort == 'pw2')
{
    $_SESSION['angemeldet'] = true;
}

Callisto

Anfänger

Beiträge: 9

Level: 19 [?]

Erfahrungspunkte: 18 944

Nächstes Level: 22 851

  • Nachricht senden

3

Mittwoch, 19. September 2012, 18:00

Hehehe, ich kan mich noch gut erinnern, als ich das erste Mal ne Seite erstellt habe, hatte ich genau dasselbe Problem mit der Definition mit nur einem User. Es hat sich dann aber schnell erledigt, als ich einen neuen Hoster gefunden hatte und außerdem das Website erstellen kostenlos war. Da gabs Super Support und schnell hatten sich alle Fragen geklärt.
Rofl

Approach

Anfänger

Beiträge: 2

Level: 12 [?]

Erfahrungspunkte: 2 548

Nächstes Level: 2 912

  • Nachricht senden

4

Dienstag, 23. Dezember 2014, 19:12

Falls du nur einen Html Bereich schützen willst, empfehle ich dir eine htaccess Datei anzulegen zum Schutz.

Solltest du ein richtiges php Projekt, bauen dann ist dies der falsche Ansatz (Stichwort Sicherheit und Erweiterbarkeit). :D

tito

Schüler

Beiträge: 138

Level: 19 [?]

Erfahrungspunkte: 22 183

Nächstes Level: 22 851

  • Nachricht senden

5

Mittwoch, 4. April 2018, 08:51

Was war es am Ende?
Ich habe dasselbe Problem

chenlina

unregistriert

6

Dienstag, 12. Juni 2018, 02:32

chenlina20180612
ysl makeup
lululemon
harry winston jewelry
chloe handbags
ferragamo belt
sophia webster shoes
swarovski rings
jordan 3
tommy hilfiger polo shirts
nike outlet online
versace clothing
linda farrow sunglasses
jordan 6
chrome hearts jewelry
tiffany rings
monster headphones
babyliss pro nano titanium
jordan 31
jordan 32
bottega veneta sunglasses
armani jeans
tiffany co
persol sunglasses
ferragamo belts
new balance
jordan 8
tom ford sunglasses
james harden jerseys
kobe 12
gentle monster sunglasses
chi flat iron
chanel outlet
calvin klein jeans
curry 5
yves saint laurent sunglasses
paul george shoes
kd 10
manolo blahnik
tom brady jerseys
alexander mcqueen
nike store
clarisonic
onitsuka tiger shoes
kd 8
teva sandals
dior sunglasses
russell wilson jerseys
burberry sunglasses
lebron 14
chanel outlet
huf clothing
russell westbrook shoes
supra shoes
lebron james jerseys
converse
barbour jackets
ysl handbags
kobe 11
hermes uk
mikimoto jewelry
dyson hair dryer
pelikan pens
ray ban
levi's jeans
nike flight bonafide
bulgari jewelry
g-star jeans
cartier sunglasses
reebok classic shoes
lebron ambassador 10
lebron soldier 9
soldier 11
ferragamo handbags
skechers sandals
freshjive clothing
champion clothing
lebron soldier 10
abercrombie and fitch
designer sunglasses
guess handbags
ghd hair straighteners
basket nike
nike dunks sb
dolce and gabbana sunglasses
marcelo burlon
nike shoes
saucony shoes
calvin klein outlet
kd 10 elite
nike hyperdunks
dak prescott jerseys
isabel marant shoes
nike kyrie 2
tiffany jewelry
miu miu sunglasses
mac cosmetics
mulberry handbags
parajumpers jackets
philipp plein outlet
mac makeup

7

Samstag, 16. Juni 2018, 09:21

Re: China-made trousers plus tax with the price is 11

<



balenciaga shoes


yeezy boost 700


yeezy boost


westbrook shoes


fitflops


nike x off white


kd shoes


Kanye West shoes


nike air zoom


adidas nmd


adidas nmd r1


nike air huarache


ray ban aviator sunglasses


yeezy boost 350


golden goose outlet


nike huarache


yeezy shoes


cheap jordans


cheap mlb jerseys


adidas nmd


nmd


longchamp bags


cheap jordans


off white shoes


crazy explosive


adidas tubular shadow


air jordans


adidas nmd


longchamp handbags


moncler outlet


lebron soldier 11


jordan retro 6


adidas stan smith


reebok outlet


michael kors handbags


yeezy 500


michael kors handbags


nike sneakers for women


nike air max 270


off white


basketball shoes


cheap jordans


true religion


off white hoodie


adidas store


kyrie shoes


converse outlet


kobe shoes


balenciaga


adidas stan smith sneakers


adidas superstar shoes


ferragamo belt


fitflops sale clearance


michael kors outlet


links of london


authentic jordans


nfl store


lebron 13


yeezy boost 350


new england patriots jersey


yeezy boost 350 v2


ray ban


nike air force 1


lebron 15


paul george shoes


nhl jerseys


pandora charms


nike free run


stephen curry 5


adidas outlet online


moncler jackets


air max


nike roshe run


yeezy boost 350


kobe 9


tory burch shoes


yeezy boost 350


yeezy boost 350 v2


zx flux


kobe shoes


nmd


nike shoes for men


nike lebron soldier 11


converse outlet


michael kors outlet store


yeezys


nike polo


nmd


adidas eqt


dior glasses


adidas yeezy


yeezy boost 350 v2


cheap jordans


nike huarache


kyrie irving shoes


timberland outlet


nike zoom


vapormax


yeezy


nike flyknit


hermes belts for men


prada sunglasses


http://www.kobebasketballshoes.us.com


adidas outlet


golden goose


ray ban sunglasses


timberland boots


kate spade handbags


chrome hearts


hermes belt


pure boost


nike polo shirts


nike flyknit


jordan 11 retro


burberry outlet


ray ban sunglasses


michael kors outlet


longchamp


air jordan


adidas tubular


goyard bags


converse outlet store


bape hoodie


adidas shoes


golden goose


derrick rose shoes


off white x jordan 1


air max 270


nfl jerseys


ray ban aviator sunglasses


fenty puma


longchamp bags


balenciaga sneakers


longchamp handbags


jordan shoes


yeezy boost 350 v2


yeezy 500


offwhite


michael kors handbags


nike air amx 270


nike air max


michael kors factory outlet


chrome hearts online


links of london sale


air yeezy


curry 4


asics gel kayano


oakley sunglasses


longchamp longchamps


adidas stan smith shoes


golden goose sneakers


yeezy boost 350


nike cortez men


ferragamo belt


yeezy boost


oakley sunglasses for men


asics kayno


yeezy boost 350 v2


adidas eqt


kobe 9


adidas superstar


patriots jersey


ray ban


reebok shoes


longchamp bags


ray ban sunglasses


red bottoms


hermes belt


michael kors outlet online


cheap nfl jerseys


james harden shoes


nike flyknit racer


adidas superstar


fila disruptor


links of london


kobe basketball shoes


michael kors outlet


yeezy boost 350


oakley sunglasses


adidas tubular


nike air max 2017


nike shoes


nike flyknit racer


adidas yeezy boost


kd shoes


oakley sunglasses


michael kors outlet online


moncler jacket


nike dunks


air jordan 4


michael kors handbags


vibram five fingers


fila shoes


stephen curry 5


oakley store


adidas pure boost


kobe byrant shoes


cheap jordans


chrome hearts online


air max 270


yeezy boost 350


lebron james shoes


gucci belts


longchamp bags


fila


ray ban sunglasses


calvin klein outlet online


nike dunk shoes


caterpillar boots


christian louboutin


kyrie shoes


lacoste polo


af1


goyard bags


yeezy boost 350 v2


jordan 4


air force 1


chrome hearts


longchamp handbags


michael kors handbags


michael kors outlet


lebron soldier 10


dior sunglasses


true religion


prada glasses


vans shoes


jordan 6


oakley sunglasses


adidas superstars


yeezy boost


russell westbrook shoes


nike basketball shoes


hermes handbags


supreme hoodie


nike air huarache


balenciaga


true religion jeans


pandora jewelry


ray ban sunglasses outlet


air max 90


adidas nmd


100% real jordans for cheap


michael kors outlet


moncler jackets


goyard handbags


yeezy shoes


real jordans for sale cheap


cheap nfl jerseys


golden goose


adidas iniki


prada glasses


michael kors uk


tory burch shoes


kobe sneakers


balenciaga


ray ban


converse outlet


yeezy


ysl handbags


chrome hearts


fila


adidas tubular shadow


kyrie 3


nike sneakers for men


yeezy boost 350


vans shoes


kobe shoes


michael jordan shoes


birkin bag


kobe 11


nike air max 90


cheap oakley sunglasses


jordan shoes


kevin durant shoes


golden goose


adidas ultra boost


adidas yeezy


wholesale ray ban sunglasses


adidas nmd


off white jordan 1


ysl


adidas ultra boost


retro jordans


nike flyknit racer


westbrook shoes


ferragamo belts


ferragamo belts


moncler jackets


jordan retro 12


off white clothing


yeezys


yeezy boost 500


tom ford sunglasses


birkin bag


christian louboutin shoes


links of london outlet store


calvin klein outlet


nike running shoes


adidas ultra boost uncaged


louboutin shoes uk


nike air force 1


nike free


off white


fila shoes


gucci belt


curry 5


yeezy boost


yeezy boost 350


nike huarache


nike zoom running shoe


cheap oakley sunglasses


nike air max 90


michael kors handbags


off white hoodie


nike hyperdunk 2017


curry 4 shoes


off white clothing


birkin bag


yeezy shoes


oakleys sunglasses


nike lebron soldier 10


lacoste outlet


lebron 15


adidas crazy explosive


adidas ultra


air max 2018


off white


retro jordans


nike huarache


pandora charms


nfl jerseys


ray ban sunglasses


jordan retro


cat boots


kobe 9


nike mercurial


air jordan 13


lacoste online shop


air presto


adidas yeezy


golden goose sneakers


vans shoes


longchamp


balenciaga triple s


nike cortez


longchamp


kd 10


kobe 9


hogan outlet


vibram fivefingers


true religion outlet


yeezy 700


jordan shoes


cheap nba jerseys


adidas yeezy


louboutin shoes


links of london sale


kyrie 4


cheap oakley sunglasses


fitflops


hermes belt


yeezy boost 350 v2


nike outlet


hogan outlet


http://www.kobeshoes.uk


adidas tubular


yeezy boost 350


adidas stan smith


nba jerseys


nike zoom


yeezy shoes


off white shoes


tom ford sunglasses


curry 4


moncler jackets


basketball shoes


mlb jerseys


michael kors


cheap basketball shoes


oakley sunglasses


jordan 11


nike roshe


lacoste outlet


air max 90


adidas nmd runner


adidas yeezy


yeezy boost


lebron 14


damian lillard shoes


longchamp outlet


adidas eqt support


kyrie 4


jordan 13


yeezy shoes


hermes birkin


iniki


hogan outlet online


tom ford eyewear


off white nike


adidas ultra boost


red bottom shoes


balenciaga shoes


ultra boost


kobe basketball shoes


goyard


michael kors outlet


supreme clothing


balenciaga shoes


yeezy boost 350


nike air max


adidas store


nike air presto


kobe 11


pandora bracelet


yeezy boost


tom ford eyewear


russell westbrook shoes


nike sneakers


asics shoes


yeezy boost 350 v2


adidas gazelle


adidas zx flux


nike foamposite


jordan 12


longchamp outlet


harden shoes


asics running shoes


paul george shoes


nike air huarache


john wall shoes


vapor max


oakley sunglasses


off white clothing


nike air force


nike air max


yeezy boost


nike outlet store online shopping


100% real jordans for cheap


nike football boots


moncler outlet


burberry


tory burch outlet


nike air zoom


converse shoes


yeezy shoes


nike hyperdunk


michael kors outlet online


goyard handbags


longchamp bags


rayban sunglasses


bape hoodie


adidas tubular


true religion


kyrie irving shoes


lebron shoes


nike air force


nike max


pandora jewelry


nike air max 2018


nike off white


curry 5


lacoste outlet


vans outlet


yeezy


air force 1

Thema bewerten