Im trying to do the following but keep getting a error.
<?php
echo '<a href="'javascript:toggle5'" id.'imageDivLink'('profilebar', 'imageDivLink');">' .$USER->firstname.' '.$USER->lastname.'</a>';
?>
Im trying to do the following but keep getting a error.
<?php
echo '<a href="'javascript:toggle5'" id.'imageDivLink'('profilebar', 'imageDivLink');">' .$USER->firstname.' '.$USER->lastname.'</a>';
?>
Your code contains a multitude of PHP, JavaScript and HTML errors. The following is what I assume you meant by it all.
<?php
echo '<a href="javascript:toggle5()" id="'
. imageDivLink('profilebar', 'imageDivLink') . '">'
. $USER->firstname . ' ' . $USER->lastname
. '</a>';
?>
echo '<a href="javascript:toggle5()" id="'.imageDivLink('profilebar','imageDivLink').'">'.$USER->firstname.' '.$USER->lastname.'</a>';