Mailinglisten-Archive |
Hallo Thomas,
> Habe diesen Code zum testen geschrieben:
> <?PHP
> ini_set ('error_reporting', E_ALL); //um ganz sicher zu sein
>
> print "hallo";
> print $_GET("hallo");
> if(isset($hallo)) print $_REQUEST('hallo');
> ?>
> <html>
> <head>
> <title>hallo</title>
> </head>
> <body>
> <form action="?name=anais">
> <input type="text" name="hallo" >
> <input type="submit" name="weg" value="weg">
> </form>
> <?
> print "<hr>";
> ?>
> .. Abschluss HTML
>
> --> http://www.spiritandjoy.ch/xPerto/php5.php
>
> Rufe ich die Seite auf, wird nur Hallo ausgegeben, kein HTML, ein
> Form nix.
> Woran kann das liegen?
>
also $_GET ist ein Array und keine Funktion.
Vondaher bricht das Skript wohl ab, oder ich stehe gerade selbst auf dem
Schlauch ;-)
print $_GET["hallo"];
Gruß
Niels
php::bar PHP Wiki - Listenarchive