Hi,
>
> maybe I don't understand but is there a consistent behaviour when
> ACTION is not set in a FORM and submitting that form:
>
> Eg.
>
> x.epl:
>
> <form method=post>
> <input type=text name=a>
> <input type=submit>
> </form>
> b is [+ $fdat{b} +]
>
>
> When requesting GET x.epl?b=1 and afterwards hitting the submit button
> I see a POST x.epl?b=1 in the apache log.
>
> This is normally not a problem because embperl (CGI.pm?)

Embperl does it, CGI.pm is not involved here

> ignores the
> arguments given in the POST request but processes the content of the
> request for arguments.
>
> My question is if this is always the case.

Embperl always puts the POST data into %fdat, when they are present

> Considering two apache
> children one serving the first request the other child the second
> request. Is it always garantueed that it works as expected? Is there
> some caching mechanism inbetween?

This has nothing to do with Apache. Your browser simply uses the same uses
the URL of your form as ACTION e.g. when you request your form with

x.epl?b=1

your browser will act as if you had wrote

<form method=post action"x.epl?b=1">

> I have the suspicion that maybe
> there is a problem because I see sometimes a strange behaviour on my
> system not processing POST requests correctly.

I don't know if this is your problem, but there is a problem with some
browser, because they behave different. Not all browser uses the form url as
default action. MSIE does it, but not all Netscape versions.

>
> Is it recommended to set ACTION in the form?
>

For the above reasons: Yes!

Just write

<form method=post action="$ENV{SCRIPT_NAME}">

This makes sure the form calls always itself.

Gerald

-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     [EMAIL PROTECTED]         Voice:    +49 6133 925131
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to