Which is more efficient:
function admin_menu() {
echo "<B> Meny </B><BR>";
echo "<A HREF=\"" . $_SERVER['PHP_SELF'] . "?action=" . MANAGE_MEMBERS .
"\">Medlemmar</A><BR>";
echo "<A HREF=\"" . $_SERVER['PHP_SELF'] . "?action=" . MANAGE_ALBUMS .
"\">Album</A><BR>";
echo "<A HREF=\"" . $_SERVER['PHP_SELF'] . "?action=" . INITIAL_PAGE .
"\">Huvudmeny</A><BR>";
echo "<A HREF=\"" . $_SERVER['PHP_SELF'] . "?action=" . LOG_OUT .
"\">Logga ut</A><BR>";
}
or
function admin_menu() {
?>
<B> Meny </B><BR>
<A HREF="<?=$_SERVER['PHP_SELF']?>?action=<?php echo(MANAGE_MEMBERS)
;?>">Medlemmar</A><BR>
<A HREF="<?=$_SERVER['PHP_SELF']?>?action=<?php echo(MANAGE_ALBUMS)
;?>">Album</A><BR>
<A HREF="<?=$_SERVER['PHP_SELF']?>?action=<?php echo(INITIAL_PAGE)
;?>">Huvudmeny</A><BR>
<A HREF="<?=$_SERVER['PHP_SELF']?>?action=<?php echo(LOG_OUT);?>">Logga
ut</A><BR>
<?php
}
Any reasons other than speed to choose either?
--
anders thoresson
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
- Re: [PHP] jumping between php and html or using echo for ... anders thoresson
- Re: [PHP] jumping between php and html or using echo... Chris Shiflett
- Re: [PHP] jumping between php and html or using ... Chris Shiflett
- RE: [PHP] jumping between php and html or using ... Daevid Vincent
- RE: [PHP] jumping between php and html or us... Chris Shiflett
- [PHP] Re: jumping between php and html or using echo... Askengren
- Re: [PHP] Re: jumping between php and html or us... Marek Kilimajer