[UPHPU] Posting a form

Jonathan Gale jon at jtoo.net
Thu Feb 24 09:31:39 MST 2005


Scott,

<snip>

> if (isset($_POST['submit'])) {
>       ... process form data
> }

change to:

if (_SERVER["REQUEST_METHOD"] == 'POST') {
	... process form data
}

Then it won't matter if they press the button or push "Enter"

<snip>

HTH



More information about the UPHPU mailing list