[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sheflug] Apache form question



On Tue, 2003-06-10 at 20:13, Ruth Gunstone wrote:
> I'm creating a web-page that submits form info (to itself) using method=GET.
> 
> The page works fine when running on my PC, with Apache 1.3.23
> 
> When I transfer the website to my laptop (Apache 2.0.44) the form no longer
> works, as the form data is not passed (I've tried using GET and POST).
> 
> I'm guessing that there's a configuration problem somewhere, but can find no
> reference in the config file (commonhttpd.conf?). That said, I'm not sure I'm
> looking in the right place - or even what to look for!!
> 
> Can anyone offer a suggestion please?

Making a few assumptions about your computers ;-)
RH 7.3 or earlier on the desktop based on your desktop
RH 8.0 as I recall on the laptop.

Any chance that this form is with PHP? 
There were changes in PHP (though I can't remember the version of PHP,
but the change was around the time RH moved over to Apache 2). The
problem is in early version of PHP an option "register_vars" was enabled
by default- in which a variable on a form named "test", then it would be
avaialble $test. 
The other subtle change was $HTTP_POST_VARS{"test"} and
$HTTP_GET_VARS{"test"} changed to $_POST["test"] or $_GET["test"].

If you're not using PHP then that's irrelevant, and more details about
what the script is written in is required.

-- 
Regards,
Adam Allen.

adam@dynamicinteraction.co.uk
pgp http://search.keyserver.net:11371/pks/lookup?op=vindex&search=adam%40dynamicinteraction.co.uk

Attachment: signature.asc
Description: This is a digitally signed message part