Can someone have a look at this for me please.
www.jobsinprogress.co.uk/millennium
If you go to the sales section and do a list all you will see that it lists all the areas with a "yes" next to the one that applies.
What I'd like to do is put something in the HTML.pl file that says:
if $rec{'stjohnswood'}="yes" then print "St Johns Wood"
else don't print anything
It's the syntax for this that I'm stuggling with. The only way that I can see to do it is by putting a separate sub in for each area and calling it if the condition is true. I was hoping that there might be a way of putting in the sub html_record without doing that.
Either way, I'm not sure what I need to do.
Any ideas?
Andy
www.jobsinprogress.co.uk/millennium
If you go to the sales section and do a list all you will see that it lists all the areas with a "yes" next to the one that applies.
What I'd like to do is put something in the HTML.pl file that says:
if $rec{'stjohnswood'}="yes" then print "St Johns Wood"
else don't print anything
It's the syntax for this that I'm stuggling with. The only way that I can see to do it is by putting a separate sub in for each area and calling it if the condition is true. I was hoping that there might be a way of putting in the sub html_record without doing that.
Either way, I'm not sure what I need to do.
Any ideas?
Andy