RE: [PHP] Real Simple, but i'm new!!

From: Date: Mon, 31 Dec 2001 16:39:02 +0000
Subject: RE: [PHP] Real Simple, but i'm new!!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-79122@lists.php.net to get a copy of this message
FYI This example does not return the expected result. Accessing: http://server.com/empty.phtml?variable Then: <?php if(!empty($variable)){ echo TRUE; } ?> Will never print TRUE according to the example. The "isset()" function is likely better suited for this person's purposes. Robert V. Zwink http://www.zwink.net/daid.php -----Original Message----- From: scott [mailto:lists@furt.com] Sent: Saturday, December 29, 2001 10:48 PM To: Php-General Subject: RE: [PHP] Real Simple, but i'm new!! well, if your URL is index.php?links if (!empty($links)) is similar to what you'd want to use. > -----Original Message----- > From: Brian Clark [mailto:brianj@fusionwerks.com] > Sent: Saturday, December 29, 2001 9:44 PM > To: PHP is not a drug. > Subject: Re: [PHP] Real Simple, but i'm new!! > > > * FiShcAkE (lee.osborne@lineone.net) [Dec 29. 2001 13:07]: > > > Hey, > > Howdydo > > > I've just started learning php and I need to know this... What are the > > commands I use to get i.e. index.php?links and index.php?news to > > work? > > You can use QUERY_STRING, but you could also use action=news, > action=links, action=asdfg and use a switch($action) > > I guess you're trying to make the URL as pretty as possible, right? > > -- > Brian Clark | Avoiding the general public since 1805! > Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8 > A library is an arsenal of liberty. > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#79122) next »