Re: [PHP4BETA] Need help with query string

From: Date: Wed, 01 Dec 1999 23:53:31 +0000
Subject: Re: [PHP4BETA] Need help with query string
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-7216@lists.php.net to get a copy of this message
On 1 Dec, Matt Greene wrote: > If i access a file like this "sitemon.php3?query" how do i get the script to > read that and do a certain command > As in what is the If statement i would use? > > Thanks > isset() and empty() are useful; try the rsults of the following code fragment. <?php if(isset($query)): echo 'Query is set<BR>'; else: echo 'Query is not set<BR>'; endif; if(empty($query)): echo 'Query is empty<BR>'; else: echo 'Query is not empty<BR>'; endif; ?> Cheers -- David Robley WEBMASTER | Phone +61 8 8374 0970 RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet | http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA Visit the PHP mirror at http://au.php.net:81/ <<<<<<<<<<<<< WARNING * END OF TEXT * STOP READING HERE >>>>>>>>>>>>>>

« previous php.version4 (#7216) next »