“red”,”Valid” => “#59AD34”);

if (!empty($_POST['urls'])) {
$host = get_headers(“http://validator.w3.org/check?uri=”. url_encode($_POST['urls']));
$status = trim(str_replace(“X-W3C-Validator-Status:”,””,$host['5']));

echo “

Validation results

HTML code for $_POST[urls]$status

“;

}

?>

Validate your HTML pages

Please enter one URL per line

<textarea name=”urls” style=”width:285px”></textarea>