There are a couple of error checking things you need to do in this case, which combines both of these solutions:
<?
// First, check to see if the variables even exist.
If ((!isset($electampvar1)) && (!isset($electampvar2)) && (!isset($electampvar2))):
echo "One or all of these variables don't exist";
// If the variables do exist, then we need to check to make sure they have values associated with them.
Else:
if($electampvar1 == ""):
echo "This value is empty";
else:
echo $electampvar1;
endif;
if($electampvar2 == ""):
echo "This value is empty";
else:
echo $electampvar2;
endif;
if($electampvar3 == ""):
echo "This value is empty";
else:
echo $electampvar3;
endif;
Endif;
?>
I would do it this way, because this provides an OR factor to verify each of the 3 variables...