Search code examples
phphtmlhrefradix

base href question bypass for one part?


Hi all am in a pickle :P

All my code is working fine apart from one small part

<body> 
 <?=$loginBar?>
<div id="headerMover"> 

Is there anyway I can warp the

<?=$loginBar?>

Only, In a base href or something like that? all the other code in my file runs at gallery.domain.com and the login part has to be forums.domain.com

I tested this by adding a "base" to the top and it worked for the login part but there rest did not.

So I need to "wrap" or something the same

Cheers


Solution

  • No, there is no way to have multiple base tags on the same page. From the MDC docs:

    Must have a start tag, and must not have an end tag

    You'll have to use absolute URLs in your header.