Ack, missed a closing parenthesis, and for avoiding warnings, you should probably use an empty check on the variable.
<html> <body> <? if (!empty($_POST["submit"])) { ?> Daten wurden eingetragen <? } ?> <form action="<? print($_SERVER["PHP_SELF"]); ?>" method="post"> <input type="submit" name="submit" value="Daten eintragen"> </form> </body> </html> ___________________________________ Ryan Marrs Web Developer Sandler & Travis Trade Advisory Services, Inc. 248.474.7200 x 183 248.474.8500 (fax) www.strtrade.com -----Original Message----- From: Ryan Marrs [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 3:12 AM To: 'Oliver Steimer'; [EMAIL PROTECTED] Subject: RE: [PHP-WIN] $_Post doesn´t work Try: <html> <body> <? if ($_POST["submit"]) { ?> Daten wurden eingetragen <? } ?> <form action="<? print($_SERVER["PHP_SELF"]); ?>" method="post"> <input type="submit" name="submit" value="Daten eintragen"> </form> </body> </html> ___________________________________ Ryan Marrs Web Developer Sandler & Travis Trade Advisory Services, Inc. 248.474.7200 x 183 248.474.8500 (fax) www.strtrade.com -----Original Message----- From: Oliver Steimer [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 5:06 PM To: [EMAIL PROTECTED] Subject: [PHP-WIN] $_Post doesn´t work Hi there , I´m trying PHP and have a problem with with the superglobals. I use Apache 1.3.27 and php 4.3.1 this is my script: <html> <body> <?php if ($_Post['submit'] { echo (" Daten wurden eingetragen"); } <form action="" method="post"> <input type="submit" name="submit" value="Daten eintragen"> </form> </body> </html> but my script won´t do anything !! Any one who can help ? regards Oliver -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php