Simple HTML-Form Question

From: Date: Sun, 13 Oct 2002 21:40:36 +0000
Subject: Simple HTML-Form Question
Groups: php.general 
Request: Send a blank email to php-general+get-119811@lists.php.net to get a copy of this message
Hi, I've updated to PHP 4.2.3 and wrote this simple Script: <? if (isset($name)) { echo "Hallo $name"; } else { echo "<FORM action='test.php' method=get> <input type=text name=name> <input type=submit name=action value=sendit>"; } ?> I would expect the following: The site starts with the form, then I enter my name (Lars) and click the send-button. Then the script says Hello Lars. The actual output is: The site starts with the form, I enter my name and click the button, then the form keeps being there, no "Hello"-message. Has there changed something in PHP-Coding since I've learned it a few years before? There seems to be a diffrence between clicking the send button and pressing Enter. Has this always been so? regards Lars

« previous php.general (#119811) next »