runnerjp Posted May 16, 2008 Share Posted May 16, 2008 <?php echo " <BR>[ <a href=\"shoutbox/emotions.php\" onclick="NewWindow(this.href,'register','240','500','no','center');return false" onfocus="this.blur()">Emotion Help</a> ]\n";?> how can you add java and php into same link ?? Link to comment https://forums.phpfreaks.com/topic/105981-what-is-the-right-way-to-do-this-link/ Share on other sites More sharing options...
BlueSkyIS Posted May 16, 2008 Share Posted May 16, 2008 fyi: it's javascript. java is very different. <?php echo "<BR>[ <a href='shoutbox/emotions.php' onclick='NewWindow(this.href,\"register\",\"240\",\"500\",\"no\",\"center\");return false;' onfocus='this.blur()'>Emotion Help</a> ]\n"; ?> Link to comment https://forums.phpfreaks.com/topic/105981-what-is-the-right-way-to-do-this-link/#findComment-543151 Share on other sites More sharing options...
rhodesa Posted May 16, 2008 Share Posted May 16, 2008 Don't forget, you can always stop php, do normal stuff, then start php again: <?php //here is some php code echo "Hello world"; ?> <BR>[ <a href="shoutbox/emotions.php" onclick="NewWindow(this.href,'register','240','500','no','center');return false;" onfocus="this.blur()">Emotion Help</a> ] <?php //Back to PHP ?> Link to comment https://forums.phpfreaks.com/topic/105981-what-is-the-right-way-to-do-this-link/#findComment-543157 Share on other sites More sharing options...
947740 Posted May 17, 2008 Share Posted May 17, 2008 On a side note, that is JavaScript, not Java. They are two completely different things. Link to comment https://forums.phpfreaks.com/topic/105981-what-is-the-right-way-to-do-this-link/#findComment-543262 Share on other sites More sharing options...
DarkWater Posted May 17, 2008 Share Posted May 17, 2008 Your best bet (since you are using no variables) would be to exit out of PHP and then reenter it after the link. =P And yes, 947740 is right, they are EXTREMELY different. Link to comment https://forums.phpfreaks.com/topic/105981-what-is-the-right-way-to-do-this-link/#findComment-543295 Share on other sites More sharing options...
947740 Posted May 17, 2008 Share Posted May 17, 2008 Ah, yes...my explanation did lack some necessary emphasis. Link to comment https://forums.phpfreaks.com/topic/105981-what-is-the-right-way-to-do-this-link/#findComment-543299 Share on other sites More sharing options...
DarkWater Posted May 17, 2008 Share Posted May 17, 2008 Italics isn't enough. You need to BOLD it. =P Link to comment https://forums.phpfreaks.com/topic/105981-what-is-the-right-way-to-do-this-link/#findComment-543302 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.