Re: php form and ssi
- From: Henrik Carlqvist <Henrik.Carlqvist@xxxxxxxxxxxx>
- Date: Fri, 28 Nov 2008 21:24:38 +0100
"Álvaro G. Vicario" <alvaroNOSPAMTHANKS@xxxxxxxxxxxxxx> wrote:
Henrik Carlqvist escribió:
405 Method Not Allowed
The requested method POST is not allowed for the URL /form_test.shtml.
This looks like the web server is configured to reject POST requests in
such URL. Do you have a <Limit ...> directive somewhere in your Apache
config?
Yes, there are som Limit directives in httpd.conf. However, they do not
seem to be related to .shtml files, only to some directories. In the same
directories I have been able to POST data from forms to .php files.
Whether you stick to SSI or switch to PHP, check the following
documentation:
http://es2.php.net/virtual
Thanks for that tip! Maybe I can have action=\"$_SERVER["PHP_SELF"]\" and
put $_SERVER["REQUEST_URI"] in a hiden input variable. Then I can let the
php script do some work depending on form input and instead of outputting
any html end by virtual($_POST["MY_REQUEST_URI"]);
That solution will probably work for most cases. One problem it won't be
able to solve is if I would like to keep some values in the form between
submits. Every time I do virtual($_POST["MY_REQUEST_URI"]); the form in
the php script included by the .shtml file will be reseted.
http://httpd.apache.org/docs/2.2/mod/mod_include.html
I have searched some such documentation without finding how to pass
variables from forms. I have also searched google for this topic without
any success. I was hoping that someone else should have seen the need of
passing form data by .shtml files and found a solution.
regards Henrik
--
The address in the header is only to prevent spam. My real address is:
hc3(at)poolhem.se Examples of addresses which go to spammers:
root@localhost postmaster@localhost
.
- Follow-Ups:
- Re: php form and ssi
- From: Henrik Carlqvist
- Re: php form and ssi
- References:
- php form and ssi
- From: Henrik Carlqvist
- Re: php form and ssi
- From: "Álvaro G. Vicario"
- Re: php form and ssi
- From: Henrik Carlqvist
- Re: php form and ssi
- From: "Álvaro G. Vicario"
- php form and ssi
- Prev by Date: Re: MySQL -> PHP -> MS Excel?
- Next by Date: Re: php form and ssi
- Previous by thread: Re: php form and ssi
- Next by thread: Re: php form and ssi
- Index(es):