Help inserting web address link from record

12 posts by 2 authors in: Forums > CMS Builder
Last Post: July 12, 2008   (RSS)

By gkornbluth - July 12, 2008

The http validation works great, but if there's no address in the database at all, them the link comes up as http:// on the resulting page.

Is there a way to add a function to the call that says if there is no URL entry in the database, then the resulting page entry remains blank?


Jerry Kornbluth
The first CMS Builder reference book is now available on-line!

Take advantage of a free 3 month trial subscription, only for CMSB users, at:

Re: [gkornbluth] Help inserting web address link from record

By Jake - July 12, 2008

Hi Jerry,

Try using this code to only run the validation procedure when there's actually data in the field:

<?php if ($record['web_site']): ?>
***URL Validation Code Here***
<?php endif ?>

Let us know how that works!
Jake Marvin - Product Specialist

Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.