cmb Posted July 14, 2012 Share Posted July 14, 2012 i don't know how to write this <a href='#' onclick="toggle_visibility('login');" style='color:white'>Login</a> inside and echo so it works right because for the onclick to work right it has to be in double quote's and not single so this doesn't work <?php echo "<a href='#' onclick='toggle_visibility('login');' style='color:white'>Login</a>"; ?> Quote Link to comment https://forums.phpfreaks.com/topic/265652-how-to-write-this-echo-statment/ Share on other sites More sharing options...
Hooker Posted July 14, 2012 Share Posted July 14, 2012 i don't know how to write this <a href='#' onclick="toggle_visibility('login');" style='color:white'>Login</a> inside and echo so it works right because for the onclick to work right it has to be in double quote's and not single so this doesn't work <?php echo "<a href='#' onclick='toggle_visibility(\"login\");' style='color:white'>Login</a>"; ?> Quote Link to comment https://forums.phpfreaks.com/topic/265652-how-to-write-this-echo-statment/#findComment-1361452 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.