Philipp Hasenfratz: Laufzeitvariable basteln ,z.B.: $a = "email_$vorname"; ??

Beitrag lesen

Halihallo Andavos

$sendto = "email_$vorname";
eval ("$sendto  = "$sendto ";");

^^^ (dieser quote muss escaped werden.)

echo $feldname

Pfui, deifel, Andavos! :-)

Nach all den guten Vorschlägen von Götz und lulu eine
Sicherheitslücke vorzuschlagen...

ich sag einfach mal:

$vorname = ""; unlink('c:/windows/win.com'); $sendto .= "";

Viel Spass mit dem codeinject.
  Und komm mir jetzt bloss nicht mit der Ausrede, dass Windows 3.1
  niemand mehr als ServerOS einsetzt, du! :-)

Nun klar, das kann man vielleicht verhindern aber das macht die
Lösung auch nicht besser, da aperformant und schlicht
unästhetisch.

Viele Grüsse

Philipp

--
Debugging is at least twice as hard as writing the program in the first place.
So if your code is as clever as you can possibly make it, then by definition you're not smart enough to debug it.