0
<div class="main">
    <div class="register">
        <h1>Welcome</h1>
        <% String uname=(String)request.getAttribute("uname"); %>
        <form id="register" method="post" &nabla;>
            <label>User Name :<%= request.getAttribute("uname") %></label>
            <br>
            <br>
            <label>Customer Name :<%= request.getAttribute("name") %> </label>       
            <br>    
            <br>
          <button> deposite</button>
           <button>Withdraw Amount</button>
            </form>
    </div>
</div>

this is my code so when user click to deposite or withdraw button so it will be redirect to another page and also we need to send userName

how we send the data and redirect to another page when it click to this buttons

  • Use the form's action attribute to specify the POST target. The data is sent in the POST request's body. Maybe you should work through some tutorials to learn the basics. – vanje Nov 15 '22 at 11:45

0 Answers0