Thanks for the help -
Perhaps I didn't explain the problem very well - so I'll try and explain in more detail.
The whois checker I've got running searches obviously for an available domain. The domain name is tagged as [>DOMAIN<] whilst the TLD extension (.com, .co.uk etc) is tagged as [>EXT<]
I want to link a price or numerical value to each TLD extension so that when someone finds a suitable available domain , they can order it from my site.
The shopping cart I'm using can accept the [>DOMAIN<] and [>EXT<] no problem but I need to add a price.
So, in essence, what I'm looking for is a script that looks at the [>EXT<] and compares it with a list (.co.uk, .com, .org, .net, .tv, .info, .biz, .org.uk etc). According to the result of that comparison, I need to set a value to a price variable (something like [>PRICE<]
That's what the problem is, and I don't really know how to go about it.....
Thanks for your help