19 Replies Latest reply on Apr 28, 2006 1:21 AM by Baz J

    Linking to the W3C from Dreamweaver template page

    Charlie_A
      I am trying to create a Dreamweaver MX 2004 template that includes a link to the W3C website to show that my page is standards compliant.

      The W3C site suggests that I use the following code to add the link:

      <p>
      <a href=" http://validator.w3.org/check?uri=referer"><img src=" http://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01 Strict" height="31" width="88"></a>
      </p>

      My problem is that this will not work when my visitor's browser or firewall disables the referer function.

      Is there anyway to define a variable within the Dreamweaver template so that the URL of the calling page is explicit, the HTML in the calling page would then look like this:

      <p>
      <a href=" http://validator.w3.org/check?uri=www.mywebsite.co.uk/test.html"><img src=" http://www.w3.org/Icons/valid-html401"
      alt="Valid HTML 4.01 Strict" height="31" width="88"></a>
      </p>

      I am trying to avoid having to edit every page on my website by embedding something in the template which will automatically set the uri value in the link to the address of the calling page.

      Thank you for any help.

      Charlie Armor