--- Robb Kerr <[EMAIL PROTECTED]> wrote: > Here's the problem. Some of the fields are empty (for instance > 'Address') and the way my code is configured a blank line appears in > the returned data when the field is empty. How do I change this code > to add a conditional that only echos the field contents AND the <br> > when the field is NOT empty?
if (!empty($foo)) { echo $foo . '<br />'; } Hope that helps. Chris ===== My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php