Can't pass variables with HTTP_POST_VARS

Stuart Stegall keltor at keltor.org
Mon Sep 20 22:53:39 BST 2010


Use $_POST instead.  http://php.net/manual/en/reserved.variables.post.php

$HTTP_POST_VARS was deprecated in PHP 4.1.  Also you'll probably want
to wrap it in htmlspecialchars() or something your roll yourself, to
make sure they don't do something like "); drop db users; as their
entry.

On Mon, Sep 20, 2010 at 4:38 PM, Dan Healy <dfhealy at gmail.com> wrote:
>
> I have just updated to Ubuntu 10.04 from Ubuntu 8.04 and am trying to run my
> web applications.  Passing input parameters from a form using HTTP_POST_VARS
> doesn't seem to be working.  My forms and php code has not changed.  Any
> ideas on how I might run down that problem?  Is there something I have to
> install that did not get installed with the upgrade?
>
> I have run apt-get update and apt-get upgrade.  That did not seem to help.
>
> Dan H
>
> --
> Ubuntu-us-tx mailing list
> Ubuntu-us-tx at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-us-tx
>
>



More information about the Ubuntu-us-tx mailing list