Hi there,
I am recoding a website, and I want to add a generic footer to each
page, using an included file with PHP snippets. Part of that footer
would be a link to validate the page using the W3C's validation
service. The code currently looks like this:
<code>
<a href="http://validator.w3.org/check?uri=<?php echo
"http://www.athenatest.org" . $PHP_SELF; ?>" >
Valid XHTML 1.0
</a>
</code>
This code will correctly grab the current URL. But what about pages
that receive POST variables? I am going to try to use POST rather
than GET for most variable-passing, and some pages may even get
different sets of variables depending on who calls them.
I see on the PHP website
(http://us3.php.net/manual/en/reserved.variables.php) that there is an
array of all POST variables called $_POST. Is there a way I can use
it to simulate calling the page with those variables, so that the
validator is validating the same dynamically-created page?
Maybe I should make the validator link secretly a form submission
button?
Any ideas welcome. Surely I'm not the first person on the web to need
this. :-)
Chris McCormick, webmaster
The Athenaeum - Interactive Humanities Online
http://www.the-athenaeum.org
PS - Any solution will be given back to the list, of course.