[thelist] PHP - getting variables from a form when register_globalsis off

Chris W. Parker cparker at swatgear.com
Thu Aug 21 17:01:19 CDT 2003


Joel D Canfield <mailto:joel at spinhead.com>
    on Thursday, August 21, 2003 10:42 AM said:

> This code seems to result in a blank page. Is there something
> obviously amiss?

Two things:

1. PHP is case sensitive so $_POST != $_post
2. PHP requires that a variable have a $ in front of it.

> strfname = $_post['fname'];
> strlname = $_post['lname'];
> strcoinst = $_post['coinst'];
etc.

should be

$strfname = $_post['fname'];
$strlname = $_post['lname'];
$strcoinst = $_post['coinst'];


hth,
Chris.


More information about the thelist mailing list