Posted by petersprc on 08/21/07 07:50
If you had a button like
<input type=button name=btn value=" OK ">
You could check:
if (isset($_POST['btn'])) {
echo 'Button post.';
} elseif (isset($_GET['btn'])) {
echo 'Button get.';
} else {
echo 'Page view.';
}
On Aug 21, 3:16 am, "Fabio" <znt.fa...@virgilio.it> wrote:
> Hi!
>
> Is there a way to know if the page is:
> - directly called from the browser
> - called by the submit button pressed in POST mode
> - called by the submit button pressed in GET mode
>
> ?
>
> Thanks
[Back to original message]
|