1) Script parses referrer URL and extracts keyword.
2) Script looks up keyword in MySQL Db and dynamically creates a landing page from a template.
3) The link is constructed wherever a defined token is found within the template.
4) The link will use the URL associated with that keyword in the dB. The anchor text will the that keyword.
5) The Db can consist of 100,000+ keywords, so the "match keyword to URL" mechanism will need to optimized for speed.
A demo site & dB will be made available for testing.
All work & copyright will belong to me exclusively.