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 Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/236260-php-variable-withing-onclick/#findComment-1214713 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.