Yes, it is valid
This is Good
<form name="form1">
<input type="hidden" name="url" value="1">
</form>
<form name="form2">
<input type="hidden" name="url" value="2">
</form>
This is also fine and will generally be interpreted as an array of values, e.g. {url: [1, 2]}
, depending on what your server does. In a URL encoding, it will look like url=1&url=2
.
<form name="form1">
<input type="hidden" name="url" value="1">
<input type="hidden" name="url" value="2">
</form>
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…