FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » $_POST not set on 404
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: $_POST not set on 404 [message #173060 is a reply to message #173059] Sat, 19 March 2011 13:35 Go to previous message
crankypuss is currently offline  crankypuss
Messages: 147
Registered: March 2011
Karma:
Senior Member
Jerry Stuckle <jstucklex(at)attglobal(dot)net> wrote:

> On 3/19/2011 8:18 AM, crankypuss wrote:
>> crankypuss<no(at)email(dot)thanks> wrote:
>>
>>> I'm setting up a server that is completely resource-based, so every
>>> valid request is going to be a 404-not-found as far as apache is
>>> concerned. That's fine, it's expected and handled.
>>>
>>> What is not fine is that when it's a form with action=POST, because
>>> the specific resource is 404-not-found, PHP does not set the $_POST
>>> variable.
>>>
>>> Anybody know a way to get the information from PHP?
>>
>> It appears that I am far from the first to encounter this issue, and
>> that the easiest solution involves mod_rewrite. Here is the info that
>> seems most pertinent in case anyone is interested:
>>
>> http://www.brainonfire.net/blog/apache-pitfall-errordocument-post/
>>
>> Looks as if I need to go off and learn about mod_rewrite now (and
>> ignorance was *so* blissful!). Thanks all.
>>
>
> It's not the "easiest answer" - it's the "more correct" answer.

Let's not get into philosophical arguments over whether "more correct"
involves using an apache extension module, rewriting apache, or some
other approach.

All working answers are correct answers, by definition; beyond that
it's a matter of how solid, how costly, and how elegant a solution is.

--
no aluminum siding offers today
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Pipe the content of a variable to a process
Next Topic: Confused about a MySQL Statement
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 12:21:20 GMT 2024

Total time taken to generate the page: 0.03898 seconds