View Single Post
  #6 (permalink)  
Old 04-05-2004, 06:49 AM
Nargule's Avatar
Nargule Nargule is offline
WebProWorld Member
 
Join Date: Nov 2003
Location: Gainesville, FL, USA, Earth, MilkyWay
Posts: 74
Nargule RepRank 0
Default

Quote:
Originally Posted by blastradius
I'm not sure of all you are testing for. But lets say $config_field1 is your email field in the database
Code:
if ( $config_field_1 != "" ); 
    {echo "<a href=mailto" $config_field_1 ">email me</a>
I use PHP very little so my syntax maybe a little off but the logic is correct
Whoa! That syntax threw the forum for a loop.

You ought to be able just to do this:
Code:
if ($config_field_1 != "")
{
  echo "<a href=mailto:$config_field_1>$config_field_1</a>";
  $field_1 = true;
}
PHP will deal with the variable in the double quotes.

p.s. I'm not sure what the if ($config_field_1 != "") is all about, just use if ($config_field_1) instead.
__________________
Tom Corwine

Please review my site at http://www.santaslane.com?source=WebPro
and be sure to check out http://www.corwine.tv <--- It's fixed now.
Reply With Quote