Well lets see, our server is Apache, and this one directory all the php scripts are renamed for example "register.php" is just "register", (dont ask why its irrelevant), and register POSTs to "checkacct", now my problem here is I cant get this to work, when I try and POST I get a Internal Server Error (500). What can I add to my .htaccess file to make it post to the file.
If I rename to .php they will work fine, however the sysadmin does not want extentions on those files. Please dont tell me I should rename them to .php I KNOW that, but he's adement on having no extentions. Thanks in advance guys.
Post not working from 1 script to another
Moderator: General Moderators
24.67.xxx.xxx - - [11/Jun/2002:02:13:56 - 400] "POST /checkacct?option=WRITE HTTP/1.1" 405 339 "http://www.mydomain.com/register" "Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt)"
Is what appears in my logfiles...
However, I am at a loss
Is what appears in my logfiles...
However, I am at a loss
You are mixing POST and GET. Form-method is POST but you add '?option=check' which is GET. instead include a
$_POST['option'] will be available in your script (='CHECK').
Just a few moments ago I tried
<Location /php>
ForceType application/x-httpd-php
</Location>
in my httpd.conf to treat any file in a directory (../htdocs/php) as php-script and it worked without server errors.
Server Version: Apache/2.0.36 (Win32) PHP/4.2.1
Server Built: May 6 2002 23:31:19
Code: Select all
<input type="hidden" name="option" value="CHECK" />Just a few moments ago I tried
<Location /php>
ForceType application/x-httpd-php
</Location>
in my httpd.conf to treat any file in a directory (../htdocs/php) as php-script and it worked without server errors.
Server Version: Apache/2.0.36 (Win32) PHP/4.2.1
Server Built: May 6 2002 23:31:19