Ejemplo n.º 1
0
}
function safetd($txt)
{
    $txt = htmlspecialchars($txt);
    if (empty($txt)) {
        $txt = ' ';
    }
    return $txt;
}
//reading parameters
$addresses = '';
if (isset($_POST['addr'])) {
    $addresses = $_POST['addr'];
}
AddressParser::$street_length = safeReadNum('street_length', AddressParser::$street_length, 1, 100);
AddressParser::$city_length = safeReadNum('city_length', AddressParser::$city_length, 1, 100);
?>
<html>
<head>
	<title>Address parser - test form</title>
	<meta http-equiv="Content-Type" content="text/html; charset=<?php 
echo ENCODING;
?>
" />
	<meta name="robots" content="noindex,nofollow" />
</head>
<body>

	<h1>Address parser</h1>

	<form action="?" method="post">