Jump to content

echo HREF variable inside PHP tags


aviatorisu

Recommended Posts

Okay, I must be having a serious brainfart here, because I can't seem to put together how to make this work:

[code]
<!-- START VIEW MENU -->
<TD ALIGN="CENTER" WIDTH="120" BGCOLOR="#FFFFFF">
<?php if ( $menu != 'NULL' ) {    echo "<A HREF='../menus/$menu#zoom=150[,0,0]&toolbar=false' target='popup' onClick='wopen('../menus/$menu#zoom=100[,0,0]&toolbar=false', 'popup', 800, 600); return false;'>Menu</A>";}
?>
</TD>
<!-- END VIEW MENU -->
[/code]

I need the $menu variable to echo within the A HREF tags...why can't I think straight tonight??

Thanks in advance...

~Z~
Link to comment
https://forums.phpfreaks.com/topic/10561-echo-href-variable-inside-php-tags/
Share on other sites

[!--quoteo(post=377504:date=May 26 2006, 10:42 PM:name=hvle)--][div class=\'quotetop\']QUOTE(hvle @ May 26 2006, 10:42 PM) [snapback]377504[/snapback][/div][div class=\'quotemain\'][!--quotec--]
then put the $menu inside the href:

echo "<a href=\"$menu\"> ..... ";
[/quote]

It IS in there, and that doesn't work...I tried it that way...

~Z~

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.