<%--------FormOrnegi.jsp----------%>
<html>
<body>
<form method="post" action="FormData.jsp">
<table>
<tr>
<td>Ad:</td>
<td><input type="text" name="txtAdi"/></td>
</tr>
<tr>
<td>Soyad:</td>
<td><input type="text" name="txtSoyad"/></td>
</tr>
<tr>
<td><input type="submit" name="btnGonder" value="Gonder"/></td>
</tr>
</table>
</form>
</body>
</html>
<%--------FormData.jsp----------%>
<%@ page import="java.util.*"%>
<%
out.println("Ad: "+request.getParameter("txtAdi"));
out.println("<br>Soyad: "+request.getParameter("txtSoyad"));
%>
<html>
<body>
<form method="post" action="FormData.jsp">
<table>
<tr>
<td>Ad:</td>
<td><input type="text" name="txtAdi"/></td>
</tr>
<tr>
<td>Soyad:</td>
<td><input type="text" name="txtSoyad"/></td>
</tr>
<tr>
<td><input type="submit" name="btnGonder" value="Gonder"/></td>
</tr>
</table>
</form>
</body>
</html>
<%--------FormData.jsp----------%>
<%@ page import="java.util.*"%>
<%
out.println("Ad: "+request.getParameter("txtAdi"));
out.println("<br>Soyad: "+request.getParameter("txtSoyad"));
%>
Comments
Post a Comment