ukscotth Posted May 12, 2011 Share Posted May 12, 2011 Hi, Im trying to do this : <a class="good-night" href="#" onclick='voteup(<?php echo $got_texts['id'];?>)';>Go</a> But it wont seem to work. It doesnt see to like the php variable echo. Any ideas where I'm going wrong ? Many thanks, Scott Link to comment https://forums.phpfreaks.com/topic/236260-php-variable-withing-onclick/ Share on other sites More sharing options...
ukscotth Posted May 12, 2011 Author Share Posted May 12, 2011 Solved. Thanks anyway. Link to comment https://forums.phpfreaks.com/topic/236260-php-variable-withing-onclick/#findComment-1214713 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.