Current url inside another url

T

teej

Ok, here's another problem I was having that I just remembered. Sorry
to ask two possibly dumb questions one right behind the other.
Anyways, I use Movable Types version of SSI (<$MTInclude
module="Footer"$> as opposed to <!-- #include file="footer.html" -->)
because it's easier. In my footer I want to include a link to the w3
validation page of whatever page you happen to be looking at.
Currently I have this link to the validation page of the index in the
footer file.

<a
href="http://validator.w3.org/check?uri=http://www.glassrock.net/weblog/index.html">Valid
XHTML 1.0</a>

How can I get the above link to logically work like this...
<a href="http://validator.w3.org/check?uri=[current url]">Valid XHTML
1.0</a>

I keep running into the problem of the quotation marks around the url.
I tried to use an SSI inside the url but the parser gets confused as to
where the url for the href is suppose to end and where the SSI begins.
Is there a work-around?
 
A

Arne

Once said:
Ok, here's another problem I was having that I just remembered. Sorry
to ask two possibly dumb questions one right behind the other.
Anyways, I use Movable Types version of SSI (<$MTInclude
module="Footer"$> as opposed to <!-- #include file="footer.html" -->)
because it's easier. In my footer I want to include a link to the w3
validation page of whatever page you happen to be looking at.
Currently I have this link to the validation page of the index in the
footer file.

<a
href="http://validator.w3.org/check?uri=http://www.glassrock.net/weblog/index.html">Valid
XHTML 1.0</a>

How can I get the above link to logically work like this...
<a href="http://validator.w3.org/check?uri=[current url]">Valid XHTML
1.0</a>

I keep running into the problem of the quotation marks around the url.
I tried to use an SSI inside the url but the parser gets confused as to
where the url for the href is suppose to end and where the SSI begins.
Is there a work-around?

Why can't you just set the url to
<a href="http://validator.w3.org/check/referer">Valid XHTML 1.0</a>

Since the current page is the referer, the validator will validate
that page in question.


--
/Arne

Top posters will be ignored. Quote the part you
are replying to, no more and no less! And don't
quote signatures, thank you.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,763
Messages
2,569,563
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top