This topic is locked

URL Prefix changes based on field

4/12/2008 6:32:10 AM
PHPRunner General questions
K
kenny_robb author

Hi there I have a field which has a value that looks like C30 and I have a url prefix that looks like http://c.server1.com/display.aspx?loc=
When I set the properties in View As" it works like a charm.
The problem is that I am now adding entries into the database that look like D30 and I now need to be able to control the url prfix based on the field. url prefeix for D30 would be http://d.server1.com/display.aspx?loc=
Any suggestions would be appreciated.
Thanks

A
alang 4/13/2008

Use a custom field to build up the complete URL taking the first character (C or D) from the database field and inserting that into the string as well as inserting the complete field after the "=". See http://www.asprunner.com/forums/index.php?showtopic=8081 for example.

K
kenny_robb author 4/14/2008

Use a custom field to build up the complete URL taking the first character (C or D) from the database field and inserting that into the string as well as inserting the complete field after the "=". See http://www.asprunner.com/forums/index.php?showtopic=8081 for example.


Thanks Alan will give that a go and see how I get on