Hi I just started to learn php and have a prob. I can't get this script to work:
<form action="<? echo $PHP_SELF ?>" method = "POST">
Name:<br><input type=Text name="name" size=35><br>
Vorname:<br><input type=Text name="vname" size=35><br>
PLZ / Ort:<br><input type=Text name="plz" size=5><input type=Text name="ort" size=26><br>
Strasse:<br><input type=Text name="str" size=35><p><br></p>
<input type=submit name="submit" value="senden">
<input type=reset name="clear" value="loeschen">
</form>
<?
echo "<br>Name: ", $name;
echo "<br>Vorname: ", $vname;
echo "<br>PLZ: ", $plz;
echo "<br>Ort: ", $ort;
echo "<br>Strasse: ", $str;
echo "<br>";
?>
IE displays this error message:
Name:
Notice: Undefined variable: name in C:\Inetpub\wwwroot\joTest\Formulare.php on line 10
Vorname:
Notice: Undefined variable: vname in C:\Inetpub\wwwroot\joTest\Formulare.php on line 11
PLZ:
Notice: Undefined variable: plz in C:\Inetpub\wwwroot\joTest\Formulare.php on line 12
Ort:
Notice: Undefined variable: ort in C:\Inetpub\wwwroot\joTest\Formulare.php on line 13
Strasse:
Notice: Undefined variable: str in C:\Inetpub\wwwroot\joTest\Formulare.php on line 14
can anybody tell me what I did wrong? Thanks
structure