View Single Post
Old 03-07-2004, 13:40   #12
Bifta
Inactive
 
Join Date: Jul 2003
Location: Eglinton, Co. Derry
Posts: 7,640
Bifta has a nice shiny starBifta has a nice shiny star
Bifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny starBifta has a nice shiny star
Re: Help (again) ...

Quote:
Originally Posted by Richard M
It's not really possible to stop the browser sending the "furnishings" value, even if it's empty - other than Javascript but you can't always rely on this.
This PHP code deals with it though:

PHP Code:
if (empty($_GET['furnishing'])) {
/* if the value in the URL is empty like:
[url]http://www.site.com/results.php?furnishing=[/url]
then do something here...
*/
}
elseif (!empty(
$_GET['furnishing'])) {
/* if the a value for "furnishing" passed in the URL is like:
[url]http://www.site.com/results.php?furnishing=Fully+Furnished[/url]
then do something different
*/
} 
Heh, that's almost what I said It's the "do something here" bit that baffles me (sorry, I still know very little about PHP and it's probably very infuriating for people trying to help me)
Bifta is offline   Reply With Quote