empty values

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • empty values

    Hi,
    wieso geht folgender Quelcode nicht? Wollte nur die
    Felder ausgeben, in denen auch etwas drinnen steht.

    PHP Code:
          while(list($Formularfeld$Wert)=each($_POST))
          {
             if(
    $Wert!=empty)
             {
                
    $Mailnachricht .= $Formularfeld.": ".$Wert."\n";
             }
          } 
    mfg & thx darki
    Last edited by darki777; 25-09-2006, 16:50.

  • #2
    Bitte Beitrag löschen, hab was übersehn, sry.

    mfg darki

    Comment


    • #3
      ja, dass du im falschen Forum gelandet bist.

      Comment


      • #4
        Bitte Beitrag löschen, hab was übersehn, sry.
        Ja das hast du Nämlich den Rückgabewert von empty() True oder False. Und dass emtpy() nur auf Vars angewendet werden kann.
        Das was du meintest war wohl
        PHP Code:
        if($wert != ''){


        Gruss

        tobi
        Gutes Tutorial | PHP Manual | MySql Manual | PHP FAQ | Apache | Suchfunktion für eigene Seiten

        [color=red]"An error does not become truth by reason of multiplied propagation, nor does truth become error because nobody sees it."[/color]
        Mohandas Karamchand Gandhi (Mahatma Gandhi) (Source)

        Comment

        Working...
        X