Re: [greg] Display Alternative Results when Field is Blank
Awesome!
Kind of along this same line. Our postal codes in the US are six digits but can have an extra (optional) 4 digits behind them separated by a dash (i.e. 123456 or 123456-1234). I get this data in two separate fields. The main postal field is always filled out; The optional "extra four" field is only filled out about half the time.
My problem is the dash because it only needs to be there when there's data in the second field. I was looking at what you just did to see if it would work for this, but can't quite figure out how to insert a '-' in front of the field's data when the field is available.
<?php echo (@$listing_resiRecord['postal_extrafour'])? htmlencode($listing_resiRecord['postal_extrafour']) : '' ; ?>
Thanks, Sid