sackstein
10-22-2009, 01:17 AM
I am having trouble adding a space between two words in a php link.
here is my code:
<?php
if ( tep_session_is_registered('customer_id') ) {
echo '<a href="' . tep_href_link(FILENAME_LOGOFF) . '" class="toplinks">'. $customer_first_name . HEADER_TITLE_LOGOFF. '</a>';
}
else {
echo '<a href="' . tep_href_link(FILENAME_LOGIN) . '" class="toplinks">' . HEADER_TITLE_LOGIN. '</a>';
}
?>
So basically if the user with the first name Mike is logged in it displays MikeLogoff
what the ultimate goal is is to say Welcome Mike (logoff)
here is my code:
<?php
if ( tep_session_is_registered('customer_id') ) {
echo '<a href="' . tep_href_link(FILENAME_LOGOFF) . '" class="toplinks">'. $customer_first_name . HEADER_TITLE_LOGOFF. '</a>';
}
else {
echo '<a href="' . tep_href_link(FILENAME_LOGIN) . '" class="toplinks">' . HEADER_TITLE_LOGIN. '</a>';
}
?>
So basically if the user with the first name Mike is logged in it displays MikeLogoff
what the ultimate goal is is to say Welcome Mike (logoff)