Ashura: PHP Ausgabe

Beitrag lesen

Hallo Uschi.

Danke hab es dann man staune wie der alte Römer schwanzus longus sagte so gemacht

Hehe. Vergiss’ nicht seine Frau …

if( ($_POST["antwort1"] == "") || ($_POST["antwort2"] == "" )||($_POST["antwort3"] == "") )
   $errorMsg = $errorMsg . "Bitte Antwort ausw&auml;hlen!<br/>";
am Ende ist es immer so einfach :-)

Zuallererst solltest stets prüfen, ob bestimmte Variablen überhaupt gesetzt wurden, andernfalls fängst du dir Notices ein und machst deinen Code fehleranfälliger.

Einen schönen Donnerstag noch.

Gruß, Ashura

--
sh:( fo:} ch:? rl:( br: n4:~ ie:{ mo:| va:) de:> zu:} fl:( ss:) ls:[ js:|
„It is required that HTML be a common language between all platforms. This implies no device-specific markup, or anything which requires control over fonts or colors, for example. This is in keeping with the SGML ideal.“
[HTML Design Constraints: Logical Markup]