我如何从提交按钮将操作导出到两个不同的页面?
How i can export the action to two differents pages from submit button?
这有点愚蠢,但我不知道。
我如何从提交按钮将操作导出到两个不同的部分?
我希望取消按钮将我带到一页,而接受按钮将我带到另一页。如何应用执行不同操作的条件?
我的按钮是接受和取消...
<section>
<form action="/news">
<input type="submit" id="button" value="Accept"> <input type="submit" class="button2" value="Cancel">
</form>
</section>
<!doctype html>
<html>
<head>
</head>
<body>
<form action="submit.html">
<label for="name">Name</label>
<input type="text" name="name">
<label for="lastname">Last Name</label>
<input type="text" name="lastname">
<button type="submit" id="submit">submit</button>
<button type="cancel" formaction="cancel.html">cancel</button>
</form>
</body>
</html>
基本上 html 你可以像这样
进行不同的操作
这有点愚蠢,但我不知道。 我如何从提交按钮将操作导出到两个不同的部分? 我希望取消按钮将我带到一页,而接受按钮将我带到另一页。如何应用执行不同操作的条件?
我的按钮是接受和取消...
<section>
<form action="/news">
<input type="submit" id="button" value="Accept"> <input type="submit" class="button2" value="Cancel">
</form>
</section>
<!doctype html>
<html>
<head>
</head>
<body>
<form action="submit.html">
<label for="name">Name</label>
<input type="text" name="name">
<label for="lastname">Last Name</label>
<input type="text" name="lastname">
<button type="submit" id="submit">submit</button>
<button type="cancel" formaction="cancel.html">cancel</button>
</form>
</body>
</html>
基本上 html 你可以像这样
进行不同的操作