[FX.php List] How to use SetFMGlobal

Steve Winter steve at bluecrocodile.co.nz
Tue May 10 23:18:32 MDT 2011


Amen to that sentiment Tim...

Malcolm if you really want to do it using a script, why not pass the psostcode and distance in as script parameters...?

Cheers
Steve

Sent from the iPhone of Steve Winter
Matatiro Solutions
steve at matatirosolutions.co.uk
+44 777 852 4776

On 11 May 2011, at 06:07, Tim 'Webko' Booth <tim at nicheit.com.au> wrote:

> 
> 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
> 
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list



More information about the FX.php_List mailing list