W3C home > Mailing lists > Public > www-validator@w3.org > June 2005

Re: PHP validation

From: Paul Norman <penorman@mac.com>
Date: Sat, 4 Jun 2005 23:49:11 -0700
To: JX <jontomxire@yahoo.co.uk>
cc: www-validator@w3.org
Message-ID: <r02010400-1041-ECC3B024D58D11D9AD7D001124301DAA@[192.168.1.103]>

>
>Hi.
>
>I am writing a website in PHP, and have two problems validating pages.
>
>1) My website uses security to restrict access to certain pages. How
>can I identify the sender of a GET or POST request as the validator
>service safely to allow it to bypass the security and validate the
>secure pages?

AFAIK you can't get the validator to do post requests.

If you set up your code to allow the validator to bypass your security
this will mean anyone can bypass your security since anyone can use the
validator.




>2) A lot of my pages will be dynamically generated as the result of a
>POST operation. Setting a POST variable totally changes the content of
>the page. How can I tell the validator about those POST variables to
>ensure it is validating the correct content? I have thought of
>expanding the array of POST variables into the URL. Is there a better
>way? 

A better option for validating dynamic pages would be a brower plugin,
but ignorance prevents me from recommending one.

Alternately you could save the pages with your browser and upload them.

-- 
Paul
Received on Sunday, 5 June 2005 06:49:09 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:19 GMT