потому что нужно читать стандарты
Temp 17.08.2004 19:38
/ 17.08.2004 19:39
цитата от сюда
http://www.w3.org/TR/WD-html40-970708/interact/forms.html Creates a graphical submit button. The value of the src attribute specifies the URL of the image that will decorate the button. Some users will be unable to see this image. We strongly recommend you provide a value for the alt attribute as an textual alternative for the image.
When a pointing device is used to click on the image, the form is submitted and the location passed to the server. The x value is measured in pixels from the left of the image, and the y value in pixels from the top of the image. The submitted data includes name.x=x-value and name.y=y-value where "name" is the value of the name attribute, and x-value and y-value are the x and y coordinate values respectively.
Вот тестовая страница (нажмите на кнопку)
@main[]
<form name="test_from" method="GET">
<input type="hidden" name="closed_eyes" value="sure">
<input type="image" name="submit" src="/files/ok.gif" alt="have fun">
</form>
^$form:fields <br>
^show_ready_hash[$form:fields]
@show_ready_hash[this_hash]
<ul>
^this_hash.foreach[key;val]{
^if($val is 'hash'){
<li>$key^[^show_ready_hash[$val]^]
}{
<li> ^if($val is 'string'){$key^[$val^]}{$key^($val^)}
}
}[</li>]
</ul>