[FX.php List] How to use SetFMGlobal

Tim 'Webko' Booth tim at nicheit.com.au
Tue May 10 21:07:42 MDT 2011


On 11/05/2011, at 1:10 PM, malcolm at notyourhomework.net wrote:

> OK, I can do that.
>
> 1. use postcode to search
> 2. get results
> 3. if there is a optional range present, do the maths and generate a  
> new search
> 4. get results
> 5. print the list
>
> I was allured by the prospect of FX being able to handle it all in  
> one request.


And why shouldn't it?

if (isset($_REQUEST['Distance'])) {
	//Do the maths and search
} else {
	//Just do the PCode search
}

I'll note that so far I have never found something that required a  
Script rather than handling it in PHP - I'm sure there may be  
something, but I also like to keep the web layer totally seperate from  
the data layer

Cheers

Webko



More information about the FX.php_List mailing list