in reply to Re^2: GET overriding POST?
in thread GET overriding POST?

Well, perhaps you'd better ask on php monks :) because it's obviously a PHP problem. The php include() is used only to include PHP code. It can't work with anything else. And the documentation for virtual() states that

Warning
The query string can be passed to the included file but $_GET is copied from the parent script and only $_SERVER['QUERY_STRING'] is filled with the passed query string. The query string may only be passed when using Apache 2. The requested file will not be listed in the Apache access log.

So basically if you're using Apache 1.3, you're stuck.

Replies are listed 'Best First'.
Re^4: GET overriding POST?
by keegan (Initiate) on Mar 16, 2006 at 17:04 UTC
    Well i suppose its time i build a new secure webserver anyway. Thanks for the help everyone.
Re^4: GET overriding POST?
by keegan (Initiate) on Mar 16, 2006 at 22:02 UTC
    Thanks for your reply, but i think the following might debunk that:

    If i output the $ENV{'CONTENT_LENGTH'} variable with nothing in the forms, the size is 22. However, if i put one char in a field and hit submit, the size increases by one. If i put n chars in the form, $ENV{'CONTENT_LENGTH'} increases by n. So the CGI script is getting the length of the POST input, im just nto sure how else to access it (other than doing read(STDIN, $x, $ENV{'CONTENT_LENGTH'})).
      Check what's in $HTTP_GET_VARS, that's all I see. However we're getting really off-topic now :)