【发布时间】:2018-02-09 19:12:57
【问题描述】:
我使用的是经典的 asp。我有一个表格,里面填满了从数据库和其他类型的输入中获取的图像。如果用户单击一个图像,我需要将一个项目(可能是一个字符串,可能是一个数字,它不相关)添加到一个数组,然后将其发送到一个经典的 asp 页面,其中包含表单中的所有其他值。我的代码是这样的:(在这种情况下,通过单击按钮填充数组)
<script language ="javascript">
var arr = [];
var i = 0;
function aggiungi() {
arr.push(i.toString());
i++;
}
</script>
<html>
<form method ="post" action="save.asp">
<input type ="text" name="nome" />
<input type ="button" onclick="aggiungi()" value ="add"/>
<input type="submit" value ="invia" />
</form>
我想发送文本框和数组 arr 中的值。我该怎么办?
【问题讨论】:
-
你试过什么?提供your code的样本
标签: html arrays forms asp-classic