Re: what the heck? (elementary question)

From: Date: Tue, 25 Jun 2002 03:00:42 +0000
Subject: Re: what the heck? (elementary question)
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-20082@lists.php.net to get a copy of this message
Keep with Christophers original statement. It is more efficient to not have large echo values. gl -- Seth szii@sziisoft.com wrote:
----- Original Message ----- From: "Cosby, Christopher" <Christopher.Cosby@sciatl.com>
I don't want to start a tangent here, but the most accepted way for generating HTML with PHP is to NOT generate HTML with PHP. Thus, the original code should be written like this:
Huh? ".. most accepted way for generating ...is NOT generate.."? Brain fart? =) I will regularly use large "echo" style statements to generate HTML, especially <SELECT> tags and result tables.
As far as the POST/GET question, you technically can use POST and GET methods simultaneously, but it's nasty. For best results, stay away from the register_globals functionality and use $HTTP_POST_VARS[] and $HTTP_GET_VARS[] instead.
Both of which are deprecated. =( _GET _POST are the new ones. POST will allow larger form submits as well, like file uploads. GET are for smaller and faster data sets.
Go to WeSellBooksByTheMillions and buy a good PHP book for reference. They have lots of basics like this in them. I prefer most anything from Wrox Press (http://www.wrox.com/)
www.php.net www.phpbuilder.com RIP Computer Literacy bookstores after the Barnes and Noble acquisition. -Mike


« previous php.db (#20082) next »