echo link with onclick
Posted: Wed May 04, 2011 11:56 am
hi everyone.
i have an issue with the onclick portion of a link when echo'd using php. i know its a matter of either a single quote or double quote, but for the life of me, i can't seem to figure it out. any ideas?
i need an onclick event so that a hidden div can be displayed.
i have an issue with the onclick portion of a link when echo'd using php. i know its a matter of either a single quote or double quote, but for the life of me, i can't seem to figure it out. any ideas?
i need an onclick event so that a hidden div can be displayed.
Code: Select all
<?php
echo '<td><a href="#?CompanyName='.$result['CompanyName'].'" onclick="showUser(this.value);"> '. $result['CompanyName'] .'</a></td>');
?>