knowing when a form has been POSTed
Posted: Sat Oct 26, 2002 6:39 pm
Ok, I'm new to PHP 4.2x, and I read with great interest the post regarding the change from register_globals, which helped a lot.
The problem is that I call $_SERVER['PHP_SELF'] as the post action, and had been using
to determine whether the form has been first opened, or actually has run with some data.
I've been searchning the forums and PHP site all day and can't seem to locate the proper syntax for that under 4.2. I've tried
and
but neither seem to be triggered by the form submittal.
This newbie would appreciate a steer in the right direction.
Thanks and happy coding!!!
The problem is that I call $_SERVER['PHP_SELF'] as the post action, and had been using
Code: Select all
If (isset($submit)) {I've been searchning the forums and PHP site all day and can't seem to locate the proper syntax for that under 4.2. I've tried
Code: Select all
If (isset($_POSTї'submit']))Code: Select all
if (isset($_SERVERї'submit']))This newbie would appreciate a steer in the right direction.
Thanks and happy coding!!!