ryans Posted October 20, 2005 Posted October 20, 2005 I was wondering if someone can help me real quick. I'd like to display one link if a user is logged in and another if they are not logged in. Here is the code i'm working with. <?php if (tep_session_is_registered('customer_id'))?> <A href="<?php echo tep_href_link(FILENAME_SHOPPING_CART, '', 'SSL'); ?>"> <?php echo tep_image_button('menu_4.jpg', ''); ?></A><?php { ?> <?php (!!tep_session_is_registered('customer_id'))?> <A href="<?php echo tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'); ?>"><?php echo tep_image_button('menu_4.jpg', ''); ?></A><?php } ?> Thanks in advanced!
TartanTrader Posted October 20, 2005 Posted October 20, 2005 Hi Not sure what your question is, but take a look at this contribution, it may help or even have the coding in you need. http://www.oscommerce.com/community/contributions,601 :) Phil Townsend Waterslap Farm, Airth Falkirk Stirlingshire FK2 8QW
Recommended Posts
Archived
This topic is now archived and is closed to further replies.