Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/70.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 如何在response.write函数中使用变量?_Html_Vbscript - Fatal编程技术网

Html 如何在response.write函数中使用变量?

Html 如何在response.write函数中使用变量?,html,vbscript,Html,Vbscript,该代码将单选按钮i的值设置为字符串。它应该将i打印为变量,如1-2-3 For i=1 To 40 Response.Write("<td height='30' align='center'>x") Else Response.Write("<td height='30' align='center'><input type=radio name=asd value="i">") End If next 您在响应中使用变量。以与其他字符串完全相同的方式写入

该代码将单选按钮i的值设置为字符串。它应该将i打印为变量,如1-2-3

For i=1 To 40
Response.Write("<td height='30' align='center'>x")
Else
Response.Write("<td height='30' align='center'><input type=radio name=asd value="i">")
End If
next
您在响应中使用变量。以与其他字符串完全相同的方式写入:

Response.Write "<td height='30' align='center'>" & _
  "<input type=radio name=asd value='" & i & "'>"

这在中有记录。

请修复If/Else/End If。