我面临的问题是要从 onsubmit 函数中提取的变量没有正确地重新插入到 url 中。它给我留下了核心 url 字符串减去变量的去向以及变量之后的所有内容
<html>
<BODY bgcolor="black">
<FONT size="2"><FONT color="red"><B>RET 5 MAN</B></FONT>
<TABLE>
<TBODY><TR><TD>
<FORM method="post" target="_parent" style="margin: 0;" action="http://impulse-ow.com/bar.html">
<INPUT name="sublogin" type="submit" style="width:150px" formtarget="_self" value="HOME">
</FORM>
</TD>
</TD>
<br>
<TABLE>
<TBODY><TR><TD>
<FORM method="post" target="_new" style="margin: 0;" action="http://zimbob.outwar.com/world.php?suid=141535">
<INPUT name="sublogin" type="submit" style="width:75px" value="FORM!">
</FORM>
</TD>
<TD>
<FORM method="post" target="_new" style="margin: 0;" action="http://zimbob.outwar.com/joinraid.php?raidid=" + document.getElementsByID('linkfive').value; + "&" + uid=141535 + "&" + serverid=4 + "&" + "launchraid=yes">
<INPUT name="launch" type="submit" style="width:75px" value="LAUNCH!">
</FORM>
</TD>
</TR>
</TBODY></TABLE>
<br>
<form onsubmit="linkfive()" id="linkfive" method="post" >
<font color="red">Raid Link:</font><br> <input type="text" />
<input type="submit" value="Submit" />
</form>
<TD><table>
<FORM method="post" target="_new" style="margin: 0;" action="http://impulse-ow.com/5mansin.html">
<INPUT name="sublogin" type="submit" style="width:75px" value="SiN">
</FORM>
<FORM method="post" target="_new" style="margin: 0;" action="http://impulse-ow.com/5mantomes.html">
<INPUT name="sublogin" type="submit" style="width:75px" value="Tomes">
</table>
</form>
</TD>
</TR>
<br>
<TABLE>
<TBODY><TR><TD>
<FORM method="post" target="_new" style="margin: 0;" action="http://zimbob.outwar.com/joinraid.php?raidid=" + document.getElementsByID('linkfive').value + "&" + suid36642>
<INPUT type="submit" style="width:150px" value="Account name" >
</FORM>
</TD>
</TR>
</TBODY></TABLE>
<script type="text/javascript">
function linkfive() {
var linkfive = document.getElementById('linkfive').value
}
</script>
</body>
</html>
就像我在非常基本的编码之前所说的那样。这可能有点草率,或者修复可能是我错过的一些愚蠢的事情,但我已经在这工作了 5 天,没有任何进展。