Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jul 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Joomla php code change help needed

    Hi,



    Hoping someone can help me with a simple code change for my Joomla site.



    I have a line of php code set up to display a registered member's first name and last name on the profile page of my website.

    This is the code:



    <?php echo ucwords($agentdata[0]->cb_agentfirstname1.' '.$agentdata[0]->cb_lastnameagent1);?>



    It delivers the following result: Jan Brady



    So, my question is, how do I modify the code so that Jan Brady becomes a clickable link? The link should point to file name "agent1.php"



    Million thanks for anyone's help!!

  • #2
    Regular Coder
    Join Date
    Jun 2009
    Posts
    138
    Thanks
    3
    Thanked 19 Times in 19 Posts
    PHP Code:
    <a href="agent1.php"><?php echo ucwords($agentdata[0]->cb_agentfirstname1.' '.$agentdata[0]->cb_lastnameagent1);?></a>


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •