httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ed Finkler" <fink...@math.purdue.edu>
Subject OT: Re: PHP Request.Form equivalent
Date Fri, 25 Jan 2002 16:05:34 GMT
> > You mean printing it out to the browser?
> > This one will do it,
> >
> >     <? echo $field_name ?>
>
> Or even shorter:
>
> <?= $field_name ?>

This actually would only work if register_globals is on.  It typically is on
most PHP installations, but as of 4.1.0 the PHP developers are actively
encouraging folks to NOT turn on register_globals.  The reasoning is that
automatically sticking everything the browser submits into a variable makes
the programmer less concious of the fact that he/she shouldn't really
"trust" what the client is telling the server -- the data could be getting
manipulated in a way he or she doesn't expect.

Take a look at http://www.php.net/release_4_1_0.php for more info on this.

-----------------
Ed Finkler
Webmaster, Dept. of Mathematics
Purdue University
765-494-9998
http://www.math.purdue.edu/~coj



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message