Alla,
#1. True (I assume you ment the "GET and PUT *methods*, not the arrays)
#2. Yes, they are. Data that has been send by the GET method will be stored
in the $_GET array, and data that has been send by the POST method will be
stored in the $_POST array.
#3. "$_SERVER["REQUEST_METHOD"] == "GET" means that a user has clicked on a
link," *among other possibilities*, yes.
You see, the GET method is the default method used for all sorts of data
retrieval, ranging from images, sounds, flash content, downloads in general,
etc. Pretty-much the only situation in which a POST is used is when a
form is define *and* that form needs to return (to the server) quite a bit
of data.
> or was redirected to a page
Nope. A POST can be as easily redirected as a GET.
> ... which should display a certain form;
That has got nothing to do with redirection I'm afraid. The redirected-to
page might not be a webpage at all (images, sounds and all other requested
data might be redirected as easily as webpages).
Also, a form (or more of them!) might be present on the page you supplied
the URL to (no redirection involved).
> Here is an example of the code:
...
> // else if the user is already at that form page and sees the form he
needs to fill in
Again, a form *might* be using the POST method, but it doesn't need to.
Regards,
Rudy Wieser
-- Origional message:
Alla <
modelli...@gmail.com> schreef in berichtnieuws
892a3f04-5c3c-4b55...@googlegroups.com...