1
我正在開發一個jsp網站。在那個網頁中,我有5個按鈕,我想設置鏈接到每個按鈕。如何在html中的多個按鈕上設置頁面重定向鏈接?
這就是我有一個按鈕叫做add_data。如果add_data按鈕被點擊它應該去add_data.jsp。
而且和一樣,edit_data被點擊應該去edit_data.jsp。
我試過至今..
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body>
<form method="post" action=""
<marquee><H1><B><i><font color="green"> PASSNOTES.....</i></B></H1></marquee>
<table width="100%">
<tr>
<th> STUDENT PROFILE</th>
<th> STAFF PROFILE </th>
<th>ADMINISTRATION</th>
<th>SMS</th>
<th> ATTENDANCE </th>
<th> SIGN OUT</th>
</tr>
</table>
<hr>
<br>
<br>
<div style="align-items: left">
<input type="submit" name="add_student" value="ADD STUDENT"><br><br>
<input type="submit" name="add_student" value="EDIT STUDENT"><br><br>
<input type="submit" name="add_student" value="STUDENT SEARCH"><BR><BR>
</div>
</body>
任何人都可以建議我sollution請...謝謝...
我有每個按鈕分開的頁面..我怎麼能重定向到該代碼的特定頁面。 – Jithin
我沒有得到你的用例。你只是想重定向?沒有表單提交?上面的代碼片段具有三個提交按鈕的未封閉表單。
如果您只想重定向,請使用javascript。在onclick事件中,添加「window.location =」http://www.yoururl.com「;」 –