|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10663 Content negotiantion seems to fail when using PHP in <form action="">-field
Submitted: 2001-05-04 08:36 UTC Modified: 2001-05-28 00:01 UTC
From: lars at bahner dot com Assigned:
Status: Closed Package: Apache related
PHP Version: 4.0.4pl1 OS: Debian GNU/Linux 2.3 (woody)
Private report: No CVE-ID: None
 [2001-05-04 08:36 UTC] lars at bahner dot com
Taking a dum example as:
<form action="<?php echo "hello" ?>" method="post">

Makes apache/netscape not being able to negotiate the content-type of the document. The document is named /php/logs/log.php but is referred to as /php/logs/log using content-negotiation on apache-ssl (

Referring to the document as /php/logs/log.php makes the document tick.

Removing the PHP-code make the /php/logs/log refernce work again!

I have many (The Debian standard amount) modules installed and my php.ini is very long. Please don't hesitate me for the details on this.




Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-04 08:37 UTC] lars at bahner dot com
Specified PHP4.0.4pl5
 [2001-05-28 00:01 UTC]
If this happens with PHP 4.0.5 please reopen.


 [2002-11-24 17:33 UTC] carp_a_dieum at yahoo dot com
This may have been addressed in a later post, but I'm seeing the same thing (if I read it right) in php 4.2.3. I can link to /dir/page.html or /dir/page and both are the same page content. The same thing happends for .htm and .php extensions; no extension is necessary. This leads me to believe it's something in the apache config. It must be checking for a directory name first, if it is not a directory it runs through the mime definitions for files.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Feb 24 04:01:28 2024 UTC