hello!
I have a problem with my form.
It cannot read the variable.
I get always the error undefined variable.
Have you any idea?
Thanks
first file (a normal htm document with css, no php)
<head>
<title>Formular1</title>
<style type="text/css">
<!--
.schrift {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
font-style: normal;
}
input {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
font-style: normal;
}
textarea {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
}
-->
</style>
</head>
<body class="schrift">
Fullen Sie bitte die Felder aus:
<FORM ACTION="ausgabe1.php" METHOD="POST">
<table border="1" cellpadding="4" cellspacing="1" bgcolor="#666666">
<tr align="center" bgcolor="#66CCFF">
<td class="schrift">First Name</td>
<td><input type=TEXT name="FirstName" size=40>
<br> </td>
</tr>
<tr align="center" bgcolor="#66CCFF">
<td class="schrift">Last Name </td><td><INPUT TYPE=TEXT NAME="LastName" size=40><br></td>
</tr>
<tr align="center" bgcolor="#66CCFF">
<td class="schrift">Email Address</td><td> <INPUT TYPE=TEXT NAME="Email" size=40><br></td>
</tr>
<tr align="center" bgcolor="#66CCFF">
<td class="schrift">Comments</td> <td><TEXTAREA NAME="Comments" ROWS=5 COLS=40></textarea><br></td>
</tr>
<tr bgcolor="#66CCFF">
<td width="250" align="center"><INPUT TYPE=SUBMIT NAME="SUBMIT" VALUE="Submit!"></td>
<td width="250" align="center"><input name="reset" type="reset" value="Reset!"></td>
</tr>
</table>
</FORM>
</body>
</html>
second file with php
<body>
<?php
if ($eingabe ==1){
echo "Vorname: $FirstName<br>
Nachname: $LastName<br>
Email: $Email<br>
Kommentare: $comments";
} else {
echo "Bitte verwenden Sie das Formular!";
}
?>
</body>