FORM POST con Pulsanti




<! DOCTYPE html>
<html>
<%
dim cars
cars = Request.Form ("cars")
%
>

<body>
<form action = "demo_radiob.asp" method = "post">
<p> Seleziona la tua auto preferita : </p>

<input type = "radio" name = "cars"
<% if cars = "Volvo" then Response.Write ("checks")%
>

value = "Volvo"> Volvo
<br>
<input type = "radio" name = "cars"
<% if cars = "Saab" then Response.Write ("checks")%
>

value = "Saab"> Saab
<br>
<input type = "radio" name = "cars"
< % se automobili = "BMW"
quindi Response.Write ("checks")%
>
value = "BMW"> BMW
<br> <br>
<input type = "submit" value = "Submit" />
</form>
<%
if cars <
>
"" poi
Response.Write ("<p> La tua macchina preferita e':" & cars & "</p>")
end if
%>
</body>
</html>










( formpostconpulsanti.html )- by Paolo Puglisi - Modifica del 17/12/2023