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.